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
- func ZeroValue[T any]() 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 GTValue
- type GrpcServiceMethod
- type ID
- type Int
- type LTValue
- type String
- type TaskFunc
- type TaskFuncWithErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFunc ¶
func EqualFunc[T constraints.Ordered](a T, b T) bool
func FloatConvert ¶
func FloatConvert[T, V constraints.Float](v V) T
func GreaterFunc ¶
func GreaterFunc[T constraints.Ordered](a T, b T) bool
func IntegerConvert ¶
func IntegerConvert[T, V constraints.Integer](v V) T
func LessFunc ¶
func LessFunc[T constraints.Ordered](a T, b T) bool
func NumberConvert ¶
func NumberConvert[T, V constraintsi.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 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 ¶
type Enum ¶
type Enum[T constraints.Integer] struct { Value T }
type FloatGTValue ¶
type FloatGTValue float64
func (FloatGTValue) Compare ¶
func (a FloatGTValue) Compare(b FloatGTValue) bool
type FloatLTValue ¶
type FloatLTValue float64
func (FloatLTValue) Compare ¶
func (a FloatLTValue) Compare(b FloatLTValue) bool
type FuncWithErr ¶
type FuncWithErr func() error
type GTValue ¶
type GTValue[T constraints.Ordered] struct { Value T }
type GrpcServiceMethod ¶ added in v1.2.12
type ID ¶ added in v1.1.0
type ID[T constraintsi.ID] struct { Id T `json:"id"` }
type LTValue ¶
type LTValue[T constraints.Ordered] struct { Value T }
type TaskFuncWithErr ¶
Click to show internal directories.
Click to hide internal directories.