package
0.0.0-20240626142247-57ba7038e800
Repository: https://github.com/curt-labs/api.git
Documentation: pkg.go.dev

# Functions

Sort a slice in ascending order.
Sort a slice in ascending order by a field name.
Sort a slice in ascending order by a list of nested field indices, e.g.
Sort a slice in ascending order by an index in a child slice.
Sort a slice in case-insensitive ascending order.
Sort a slice in case-insensitive ascending order by a field name.
Sort a slice in case-insensitive ascending order by a list of nested field indices, e.g.
Sort a slice in case-insensitive ascending order by an index in a child slice.
Sort a slice in case-insensitive descending order.
Sort a slice in case-insensitive descending order by a field name.
Sort a slice in case-insensitive descending order by a list of nested field indices, e.g.
Sort a slice in case-insensitive descending order by an index in a child slice.
Sort a slice in descending order.
Sort a slice in descending order by a field name.
Sort a slice in descending order by a list of nested field indices, e.g.
Sort a slice in descending order by an index in a child slice.
Returns a Getter which gets nested fields corresponding to e.g.
Returns a Getter which gets fields with name from a reflect.Value for a slice of a struct type, returning them as a slice of reflect.Value (one Value for each field in each struct.) Can be used with Sort to sort an []Object by e.g.
Returns a Getter which gets values with index from a reflect.Value for a slice.
Returns a Sorter for a slice which will sort according to the items retrieved by getter, in the given ordering.
Reverse a slice.
Reverse a type which implements sort.Interface.
Returns a Getter which returns the values from a reflect.Value for a slice.
Sort a slice using a Getter in the order specified by Ordering.
Sort a type using its existing sort.Interface, then reverse it.

# Constants

A runtime panic will occur if case-insensitive is used when not sorting by a string type.
A runtime panic will occur if case-insensitive is used when not sorting by a string type.
A runtime panic will occur if case-insensitive is used when not sorting by a string type.
A runtime panic will occur if case-insensitive is used when not sorting by a string type.

# Structs

A reflecting sort.Interface adapter.

# Type aliases

A Getter is a function which takes a reflect.Value for a slice, and returns a a slice of reflect.Value, e.g.
Ordering decides the order in which the specified data is sorted.