1 Star 0 Fork 0

sy_183 / go-common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
type.go 474 Bytes
一键复制 编辑 原始数据 按行查看 历史
sy_183 提交于 2022-10-30 19:18 . Initial commit
package generic
type Unsigned interface {
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}
type Signed interface {
~int | ~int8 | ~int16 | ~int32 | ~int64
}
type Integer interface {
Unsigned | Signed
}
type Float interface {
~float32 | ~float64
}
type Complex interface {
~complex64 | ~complex128
}
type OrderedNumber interface {
Integer | Float
}
type Number interface {
OrderedNumber | Complex
}
type Ordered interface {
OrderedNumber | ~string
}
1
https://gitee.com/sy_183/go-common.git
git@gitee.com:sy_183/go-common.git
sy_183
go-common
go-common
v1.0.4

搜索帮助