Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumericCompare ¶ added in v1.1.0
NumericCompare compares strings with respect to values of nonnegative integer groups. For example, 'a9z' is considered less than 'a11z', because 9 < 11. If two numbers with leading zeroes have the same value, the shortest of them is considered less, i.e. 12 < 012. Digits and non-digits are compared lexicographically, i.e. ' ' (space) < 5 < 'a'.
func NumericLess ¶
NumericLess is a shortcut for NumericCompare(a, b) < 0.
func NumericSort ¶
func NumericSort(s []string)
NumericSort sorts the given slice using NumericCompare.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.