You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
263 B

package LogBuilder
type logInfoArray []*logInfo
func (arr logInfoArray) Len() int {
return len(arr)
}
func (arr logInfoArray) Less(i, j int) bool {
return arr[i].key < arr[j].key
}
func (arr logInfoArray) Swap(i, j int) {
arr[i], arr[j] = arr[j], arr[i]
}