Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicMatchers ¶
type BasicMatchers interface { AnyType | NotNilType }
type CustomType ¶
func Custom ¶
func Custom[T any](f func(v T) bool) CustomType[T]
func GE ¶
func GE[T constraints.Ordered](v T) CustomType[T]
func GT ¶
func GT[T constraints.Ordered](v T) CustomType[T]
func LE ¶
func LE[T constraints.Ordered](v T) CustomType[T]
func LT ¶
func LT[T constraints.Ordered](v T) CustomType[T]
func (CustomType[T]) Match ¶
func (m CustomType[T]) Match(v any) bool
func (CustomType[T]) String ¶
func (m CustomType[T]) String() string
type NotNilType ¶
type NotNilType struct{}
var NotNil NotNilType
func (NotNilType) Match ¶
func (t NotNilType) Match(v any) bool
func (NotNilType) String ¶
func (t NotNilType) String() string
Click to show internal directories.
Click to hide internal directories.