Documentation ¶
Index ¶
- Variables
- func Compare(e1, e2 string, t ...TransformFunc) int
- func CompareAscii(e1, e2 string) int
- func CompareAsciiInsensitive(e1, e2 string) int
- func CompareInsensitive(e1, e2 string) int
- func Equal(cmps ...CompareFunc) func(string, string) bool
- func Less(cmps ...CompareFunc) func(string, string) bool
- func Natural(e1, e2 string, t ...TransformFunc) int
- func NaturalAscii(e1, e2 string) int
- func NaturalAsciiInsensitive(e1, e2 string) int
- func NaturalInsensitive(e1, e2 string) int
- type CompareFunc
- type TransformFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ToLower = strings.ToLower ToAscii = unidecode.String )
Functions ¶
func Compare ¶
func Compare(e1, e2 string, t ...TransformFunc) int
func CompareAscii ¶
func CompareAsciiInsensitive ¶
func CompareInsensitive ¶
func Natural ¶
func Natural(e1, e2 string, t ...TransformFunc) int
func NaturalAscii ¶
func NaturalAsciiInsensitive ¶
func NaturalInsensitive ¶
Types ¶
type CompareFunc ¶
func BuildCompare ¶
func BuildCompare(cmps ...CompareFunc) CompareFunc
type TransformFunc ¶
func BuildTransform ¶
func BuildTransform(transforms ...TransformFunc) TransformFunc
Click to show internal directories.
Click to hide internal directories.