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

17 lines
208 B
Go

package table
type SortOrder int
type SortFn func(interface{}, interface{}) bool
const (
SortNone SortOrder = iota
SortAsc
SortDesc
)
type SortBy struct {
index int
order SortOrder
sortFn SortFn
}