Documentation
¶
Index ¶
- func Compare[T constraints.Ordered](x, y T) int
- func Equal[T comparable](a T, b T) bool
- func FloatFlip[T constraints.Float](i T) T
- func Greater[T constraints.Ordered](a T, b T) bool
- func Less[T constraints.Ordered](a T, b T) bool
- func SignedFlip[T constraints.Signed](i T) T
- func UnSignedFlip[T constraints.Unsigned](i T) T
- type Comparable
- type ComparableIdx
- type CompareEqual
- type CompareFunc
- type CompareIdxLessdeprecated
- type CompareKey
- type CompareLessdeprecated
- type EqualFunc
- type EqualKey
- type GTValue
- type LTValue
- type LessFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare[T constraints.Ordered](x, y T) int
func Equal ¶
func Equal[T comparable](a T, b T) bool
func FloatFlip ¶
func FloatFlip[T constraints.Float](i T) T
func Greater ¶
func Greater[T constraints.Ordered](a T, b T) bool
func Less ¶
func Less[T constraints.Ordered](a T, b T) bool
func SignedFlip ¶
func SignedFlip[T constraints.Signed](i T) T
func UnSignedFlip ¶
func UnSignedFlip[T constraints.Unsigned](i T) T
Types ¶
type Comparable ¶
type ComparableIdx ¶
type CompareEqual ¶ added in v1.3.20
type CompareFunc ¶
func (CompareFunc[T]) LessFunc ¶
func (c CompareFunc[T]) LessFunc() LessFunc[T]
type CompareIdxLess
deprecated
type CompareKey ¶
type CompareLess
deprecated
type EqualKey ¶
type EqualKey[T comparable] interface { EqualKey() T }
type GTValue ¶
type GTValue[T constraints.Ordered] struct { Value T }
type LTValue ¶
type LTValue[T constraints.Ordered] struct { Value T }
Click to show internal directories.
Click to hide internal directories.