Documentation
¶
Index ¶
- func IntLessCallbackSort(Data []int, LessFunc func(a int, b int) bool)
- func InterfaceCallbackSort(objList interface{}, lessFn interface{})
- func InterfaceCallbackSortWithIndexLess(objList interface{}, lessFn func(a int, b int) bool)
- func InterfaceRevert(objList interface{})
- func KeysOfMapSortByKey(keyOfMapMustBeString interface{}) (keyList []string)
- func KeysOfMapSortByValue(m map[string]int) (keyList []string)
- func KeysOfMapSortByValueFloat64(m map[string]float64) (keyList []string)
- func ReverseStringList(sList []string)
- func ReverseStringSort(sList []string)
- func SortInt(data []int)
- func SortString(data []string)
- type IntLessCallbackSortT
- type ReverseStringSlice
- type StringIntPair
- type StringIntPairSortedByIntDesc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceCallbackSort ¶
func InterfaceCallbackSort(objList interface{}, lessFn interface{})
func InterfaceRevert ¶
func InterfaceRevert(objList interface{})
func KeysOfMapSortByKey ¶
func KeysOfMapSortByKey(keyOfMapMustBeString interface{}) (keyList []string)
func KeysOfMapSortByValue ¶
func ReverseStringList ¶
func ReverseStringList(sList []string)
func ReverseStringSort ¶
func ReverseStringSort(sList []string)
func SortString ¶
func SortString(data []string)
Types ¶
type IntLessCallbackSortT ¶
func (*IntLessCallbackSortT) Len ¶
func (s *IntLessCallbackSortT) Len() int
func (*IntLessCallbackSortT) Less ¶
func (s *IntLessCallbackSortT) Less(i, j int) bool
func (*IntLessCallbackSortT) Sort ¶
func (s *IntLessCallbackSortT) Sort()
func (*IntLessCallbackSortT) Swap ¶
func (s *IntLessCallbackSortT) Swap(i, j int)
type ReverseStringSlice ¶
type ReverseStringSlice []string
func (ReverseStringSlice) Len ¶
func (p ReverseStringSlice) Len() int
func (ReverseStringSlice) Less ¶
func (p ReverseStringSlice) Less(i, j int) bool
func (ReverseStringSlice) Swap ¶
func (p ReverseStringSlice) Swap(i, j int)
type StringIntPair ¶
type StringIntPairSortedByIntDesc ¶
type StringIntPairSortedByIntDesc []StringIntPair
func (StringIntPairSortedByIntDesc) Len ¶
func (l StringIntPairSortedByIntDesc) Len() int
func (StringIntPairSortedByIntDesc) Less ¶
func (l StringIntPairSortedByIntDesc) Less(i int, j int) bool
func (StringIntPairSortedByIntDesc) Swap ¶
func (l StringIntPairSortedByIntDesc) Swap(i int, j int)
Click to show internal directories.
Click to hide internal directories.