Documentation ¶
Index ¶
- func EqualFunc[T constraints.Ordered](a T, b T) bool
- func FloatConvert[T, V constraints.Float](v V) T
- func GreaterFunc[T constraints.Ordered](a T, b T) bool
- func IntegerConvert[T, V constraints.Integer](v V) T
- func LessFunc[T constraints.Ordered](a T, b T) bool
- func NumberConvert[T, V constraintsi.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 Bool
- func (b Bool) IsFalse() bool
- func (b Bool) IsNone() bool
- func (b Bool) IsTrue() bool
- func (b Bool) MarshalBinary() ([]byte, error)
- func (b Bool) MarshalJSON() ([]byte, error)
- func (b Bool) MarshalText() ([]byte, error)
- func (b Bool) String() string
- func (b *Bool) UnmarshalBinary(data []byte) error
- func (b *Bool) UnmarshalJSON(data []byte) error
- func (b *Bool) UnmarshalText(data []byte) error
- type CompareFunc
- type Enum
- type FloatGTValue
- type FloatLTValue
- type Func
- type FuncWithErr
- type GRPCServiceMethod
- type GTValue
- type Int
- type Key
- type LTValue
- type String
- type TaskFunc
- type TaskFuncWithErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFunc ¶ added in v1.8.0
func EqualFunc[T constraints.Ordered](a T, b T) bool
func FloatConvert ¶ added in v1.8.0
func FloatConvert[T, V constraints.Float](v V) T
func GreaterFunc ¶ added in v1.8.0
func GreaterFunc[T constraints.Ordered](a T, b T) bool
func IntegerConvert ¶ added in v1.8.0
func IntegerConvert[T, V constraints.Integer](v V) T
func LessFunc ¶ added in v1.8.0
func LessFunc[T constraints.Ordered](a T, b T) bool
func NumberConvert ¶ added in v1.8.0
func NumberConvert[T, V constraintsi.Number](v V) T
func SignedConvert ¶ added in v1.8.0
func SignedConvert[T, V constraints.Signed](v V) T
func UnsignedConvert ¶ added in v1.8.0
func UnsignedConvert[T, V constraints.Unsigned](v V) T
Types ¶
type Bool ¶
type Bool int8
func (Bool) MarshalJSON ¶
func (*Bool) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Bool) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type CompareFunc ¶ added in v1.8.0
type Enum ¶ added in v1.8.0
type Enum[T constraints.Integer] int
type FloatGTValue ¶ added in v1.7.2
type FloatGTValue float64
func (FloatGTValue) Compare ¶ added in v1.7.2
func (a FloatGTValue) Compare(b FloatGTValue) bool
type FloatLTValue ¶ added in v1.7.2
type FloatLTValue float64
func (FloatLTValue) Compare ¶ added in v1.7.2
func (a FloatLTValue) Compare(b FloatLTValue) bool
type FuncWithErr ¶ added in v1.8.0
type FuncWithErr func() error
type GRPCServiceMethod ¶ added in v1.8.0
type GTValue ¶ added in v1.8.0
type GTValue[T constraints.Ordered] struct { Value T }
type Key ¶ added in v1.8.0
type Key[T comparable] interface { Key() T }
type LTValue ¶ added in v1.8.0
type LTValue[T constraints.Ordered] struct { Value T }
type TaskFuncWithErr ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.