Documentation ¶
Index ¶
- func EqualFunc[T constraints.Ordered](t T, t2 T) bool
- func FloatConvert[T, V constraints.Float](v V) T
- func GreaterFunc[T constraints.Ordered](t T, t2 T) bool
- func IntegerConvert[T, V constraints.Integer](v V) T
- func LessFunc[T constraints.Ordered](t T, t2 T) bool
- func NumberConvert[T, V Number](v V) T
- func SignedConvert[T, V constraints.Signed](v V) T
- func UnsignedConvert[T, V constraints.Unsigned](v V) T
- type Basic
- type Callback
- type CmpKey
- type Compare
- type CompareFunc
- type Enum
- type Func
- type FuncWithErr
- type GRPCServiceMethod
- type ID
- type Int
- type Key
- type Number
- type OrderKey
- type Range
- type Store
- type StoreWithExpire
- type String
- type TaskFunc
- type TaskFuncWithErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFunc ¶
func EqualFunc[T constraints.Ordered](t T, t2 T) bool
func FloatConvert ¶
func FloatConvert[T, V constraints.Float](v V) T
func GreaterFunc ¶
func GreaterFunc[T constraints.Ordered](t T, t2 T) bool
func IntegerConvert ¶
func IntegerConvert[T, V constraints.Integer](v V) T
func LessFunc ¶
func LessFunc[T constraints.Ordered](t T, t2 T) bool
func NumberConvert ¶
func NumberConvert[T, V Number](v V) T
func SignedConvert ¶
func SignedConvert[T, V constraints.Signed](v V) T
func UnsignedConvert ¶
func UnsignedConvert[T, V constraints.Unsigned](v V) T
Types ¶
type CmpKey ¶
type CmpKey[T comparable] interface { CmpKey() T }
type CompareFunc ¶
type Enum ¶
type Enum[T constraints.Integer] int
type FuncWithErr ¶
type FuncWithErr func() error
type GRPCServiceMethod ¶
type Key ¶
type Key[T comparable] interface { Key() T }
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
type OrderKey ¶
type OrderKey[T constraints.Ordered] interface { OrderKey() T }
comparable 只能比较是否相等,不能比较大小
type StoreWithExpire ¶
type TaskFuncWithErr ¶
Click to show internal directories.
Click to hide internal directories.