types

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 Basic added in v1.8.0

type Basic struct {
}

type Bool

type Bool int8

func (Bool) IsFalse

func (b Bool) IsFalse() bool

func (Bool) IsNone

func (b Bool) IsNone() bool

func (Bool) IsTrue

func (b Bool) IsTrue() bool

func (Bool) MarshalBinary

func (b Bool) MarshalBinary() ([]byte, error)

MarshalBinary

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

func (Bool) MarshalText

func (b Bool) MarshalText() ([]byte, error)

MarshalText

func (Bool) String

func (b Bool) String() string

String implements Stringer.

func (*Bool) UnmarshalBinary

func (b *Bool) UnmarshalBinary(data []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler.

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Bool) UnmarshalText

func (b *Bool) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

type CompareFunc added in v1.8.0

type CompareFunc func(a, b any) bool

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 Func added in v1.8.0

type Func func()

type FuncWithErr added in v1.8.0

type FuncWithErr func() error

type GRPCServiceMethod added in v1.8.0

type GRPCServiceMethod[REQ, RES any] func(context.Context, REQ) (RES, error)

type GTValue added in v1.8.0

type GTValue[T constraints.Ordered] struct {
	Value T
}

func (GTValue[T]) Compare added in v1.8.0

func (a GTValue[T]) Compare(b GTValue[T]) bool

type Int added in v1.8.0

type Int int

func (Int) Key added in v1.8.0

func (s Int) Key() int

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
}

func (LTValue[T]) Compare added in v1.8.0

func (a LTValue[T]) Compare(b GTValue[T]) bool

type String added in v1.8.0

type String string

func (String) Key added in v1.8.0

func (s String) Key() string

type TaskFunc added in v1.8.0

type TaskFunc func(context.Context)

type TaskFuncWithErr added in v1.8.0

type TaskFuncWithErr func(context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL