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 Dict
- type Enum
- type FloatGTValue
- type FloatLTValue
- type Func
- type FuncWithErr
- type GTValue
- type GrpcServiceMethod
- type ICompare
- type ID
- type IDelete
- type IDurationGenerator
- type IGet
- type IIdGenerator
- type IInit
- type IKey
- type ISet
- type Int
- type LTValue
- type Option
- func (opt *Option[T]) Get() (T, bool)
- func (a *Option[T]) IfNone(action func())
- func (a *Option[T]) IfSome(action func(value T))
- func (opt *Option[T]) IsNone() bool
- func (opt *Option[T]) IsSome() bool
- func (a *Option[T]) MarshalJSON() ([]byte, error)
- func (a *Option[T]) Next() *Option[T]
- func (a *Option[T]) UnmarshalJSON(data []byte) error
- func (opt *Option[T]) Unwrap() T
- func (opt *Option[T]) UnwrapOr(def T) T
- func (opt *Option[T]) UnwrapOrElse(fn func() T) T
- func (opt *Option[T]) Val() (T, bool)
- type Pair
- type Ref
- type Result
- func (a Result[T]) IfErr(action func(err error))
- func (a Result[T]) IfOk(action func(value T))
- func (a Result[T]) IsErr() bool
- func (a Result[T]) IsErrAnd(f func(error) bool) bool
- func (a Result[T]) IsOk() bool
- func (a Result[T]) IsOkAnd(f func(T) bool) bool
- func (a *Result[T]) MarshalJSON() ([]byte, error)
- func (a Result[T]) Or(value T) T
- func (a Result[T]) OrDefault() (v T)
- func (a Result[T]) OrPanic() T
- func (a *Result[T]) UnmarshalJSON(data []byte) error
- func (a Result[T]) Val() (value T, err error)
- type Store
- type StoreWithExpire
- type String
- type TaskFunc
- type TaskFuncWithErr
- type Tuple
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 Dict ¶
type Dict[K comparable, V any] struct { Key K Value V }
type Enum ¶
type Enum[T constraints.Unsigned | ~string] 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 ¶
type ID ¶
type ID[T constraintsi.ID] struct { Id T `json:"id"` }
type IDelete ¶
type IDelete[K constraints.Key, V any] interface { Delete(key K) }
type IDurationGenerator ¶
type IGet ¶
type IGet[K constraints.Key, V any] interface { Get(key K) V }
type IIdGenerator ¶
type IIdGenerator[T constraints.ID] interface { Id() T }
type IKey ¶
type IKey[T constraintsi.Key] interface { Key() T }
type ISet ¶
type ISet[K constraints.Key, V any] interface { Set(key K, v V) }
type LTValue ¶
type LTValue[T constraints.Ordered] struct { Value T }
type Option ¶
type Option[T any] struct { // contains filtered or unexported fields }
func (*Option[T]) MarshalJSON ¶
func (*Option[T]) UnmarshalJSON ¶
func (*Option[T]) UnwrapOrElse ¶
func (opt *Option[T]) UnwrapOrElse(fn func() T) T
type Result ¶
type Result[T any] struct { // contains filtered or unexported fields }
func (*Result[T]) MarshalJSON ¶
func (*Result[T]) UnmarshalJSON ¶
type StoreWithExpire ¶
type TaskFuncWithErr ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.