Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort[C constraints.Ordered](c []C, isReverse bool) []C
Sort() wraps the sort.Slice() function and uses the generic type constraints.Ordered. If true, the bool isReverse parameter can reverse the sort order (descending). If false, the sort order is ascending.
See constraints.Ordered for more information about usable types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.