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