Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckComparableType ¶
func CheckComparableType(a interface{}) bool
func CheckComparableTypes ¶
func CheckComparableTypes(objs ...interface{}) bool
func Compare ¶
func Compare(a, b interface{}, compare Comparator) int
Types ¶
type Comparable ¶
type Comparable interface {
Equals(a, b interface{}) bool
}
type Comparator ¶
type Comparator interface {
Compare(a, b interface{}) int
}
Click to show internal directories.
Click to hide internal directories.