Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Strings = sort.Strings
Strings sorts a slice of strings in increasing order.
Functions ¶
func StringsByHex ¶
func StringsByHex(x []string)
StringsByHex sorts a slice of strings according to their big-endian Hex value. This function panics in the event that an element in the slice cannot be converted to a Hex slice. Each string representation of a hex value must be of even length.
func StringsByInt ¶
func StringsByInt(x []string)
StringsByInt sorts a slice of strings according to their integer value. This function panics in the event that an element in the slice cannot be converted to an integer
Types ¶
type StringSlice ¶
type StringSlice func(x []string)
Strings is a function type used to sort a slice of strings in increasing order. Any errors which arise from sorting the slice will raise a panic.
Click to show internal directories.
Click to hide internal directories.