gitlab.com/evatix-go/core@v1.3.55/coredata/Integers.go (about) 1 package coredata 2 3 type Integers []int 4 5 func (p Integers) Len() int { 6 if p == nil { 7 return 0 8 } 9 10 return len(p) 11 } 12 13 func (p Integers) Less(i, j int) bool { return p[i] < p[j] } 14 func (p Integers) Swap(i, j int) { p[i], p[j] = p[j], p[i] }