Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
Types ¶
type CompareFunc ¶
CompareFunc is a function for comparing two values of the same type.
func NewCompareFunc ¶
func NewCompareFunc[T constraints.Ordered]() CompareFunc[T]
NewCompareFunc creates a comparator function for standard Go types.
func NewInvertedCompareFunc ¶ added in v0.3.2
func NewInvertedCompareFunc[T constraints.Ordered]() CompareFunc[T]
NewInvertedCompareFunc creates an inverted comparator function for standard Go types.
type EqualFunc ¶
EqualFunc is a function for checking equality of two values of the same type.
func NewEqualFunc ¶
func NewEqualFunc[T comparable]() EqualFunc[T]
NewEqualFunc creates a comparator function for standard Go types.
Click to show internal directories.
Click to hide internal directories.