mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-26 08:14:43 +08:00
新增权重随机相关函数
This commit is contained in:
25
util/typedef/type.go
Normal file
25
util/typedef/type.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package typedef
|
||||
|
||||
type Signed interface {
|
||||
~int | ~int8 | ~int16 | ~int32 | ~int64
|
||||
}
|
||||
|
||||
type Unsigned interface {
|
||||
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
|
||||
}
|
||||
|
||||
type Float interface {
|
||||
~float32 | ~float64
|
||||
}
|
||||
|
||||
type Integer interface {
|
||||
Signed|Unsigned
|
||||
}
|
||||
|
||||
type Number interface {
|
||||
Signed|Unsigned
|
||||
}
|
||||
|
||||
type Ordered interface {
|
||||
Number|Float|~string
|
||||
}
|
||||
Reference in New Issue
Block a user