Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareKey ¶
type CompareKey[T comparable] interface { CompareKey() T }
type Key ¶
type Key interface { constraints.Integer | ~string | ~[8]byte | ~[16]byte | ~[32]byte | constraints.Float //| ~[]byte }
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
type OrderKey ¶
type OrderKey[T constraints.Ordered] interface { OrderKey() T }
comparable 只能比较是否相等,不能比较大小
Click to show internal directories.
Click to hide internal directories.