strings

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NumericLess

func NumericLess(a, b string) bool

NumericLess 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'.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL