Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericSorter ¶
GenericSorter is a generic sorter for slices of any comparable type.
func (*GenericSorter[T]) Len ¶
func (gs *GenericSorter[T]) Len() int
Len is part of sorter.Interface.
func (*GenericSorter[T]) Less ¶
func (gs *GenericSorter[T]) Less(i, j int) bool
Less is part of sorter.Interface. It calls the "by" closure in the sorter.
func (*GenericSorter[T]) Swap ¶
func (gs *GenericSorter[T]) Swap(i, j int)
Swap is part of sorter.Interface.
Click to show internal directories.
Click to hide internal directories.