mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
docs(mathx): add godoc comment to Numerical type constraint (#5470)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package mathx
|
package mathx
|
||||||
|
|
||||||
|
// Numerical is a constraint that permits any numeric type.
|
||||||
type Numerical interface {
|
type Numerical interface {
|
||||||
~int | ~int8 | ~int16 | ~int32 | ~int64 |
|
~int | ~int8 | ~int16 | ~int32 | ~int64 |
|
||||||
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 |
|
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 |
|
||||||
|
|||||||
Reference in New Issue
Block a user