Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort(arr []Comparable)
func SortBy ¶
func SortBy(arr []interface{}, comparator Comparator)
Types ¶
type Comparable ¶
type Comparable interface {
CompareTo(other Comparable) bool
}
type Comparator ¶
type Comparator func(o1 interface{}, o2 interface{}) bool
Click to show internal directories.
Click to hide internal directories.