gitlab.com/evatix-go/core@v1.3.55/coredata/PointerStrings.go (about)

     1  package coredata
     2  
     3  type PointerStrings []*string
     4  
     5  func (p PointerStrings) Len() int {
     6  	if p == nil {
     7  		return 0
     8  	}
     9  
    10  	return len(p)
    11  }
    12  
    13  func (p PointerStrings) Less(i, j int) bool { return *p[i] < *p[j] }
    14  func (p PointerStrings) Swap(i, j int)      { p[i], p[j] = p[j], p[i] }