Documentation ¶
Index ¶
Constants ¶
View Source
const ( FirstSmaller int = -1 Equal = 0 SecondSmaller = 1 FirstBigger = SecondSmaller SecondBigger = FirstSmaller )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶ added in v1.0.2
func NewByField ¶ added in v1.0.4
func (Comparator[T]) Less ¶ added in v1.0.2
func (comparator Comparator[T]) Less() func(first, second T) bool
func (Comparator[T]) Reverse ¶ added in v1.0.2
func (comparator Comparator[T]) Reverse() Comparator[T]
Click to show internal directories.
Click to hide internal directories.