package
1.0.2
Repository: https://github.com/chanced/caps.git
Documentation: pkg.go.dev

# Functions

Append appends all of elems to t.
AppendRune append the rune to the current token.
CaserOrDefault returns the default caser if caser is nil.
FirstRune returns the first rune of s.
HasLower returns true if any rune in the token is a unicode lowercase letter.
IsEmpty reports whether s has a len of 0.
IsNumber reports true if the string is considered a valid number based on the following rules: - If the Token is composed only of numbers - If the Token is prefixed with any of the following: + - .
LowerFirst lower cases the first rune of s.
Reverse reverses s.
ToLower lower cases each rune of s using caser and writes to b.
ToLUpper upper cases cases each rune of s using caser and writes to b.
UpperFirst title cases the first rune of s.
UpperFirstLowerRest title cases the first rune and lower cases the rest of s.
Write writes e to b.
WriteLower uses caser to lower case the runes in s and writes to b.
WriteRune writes the runes to the b.
WriteSplitLower writes all strings in elems separated by sep and written as lower case.
WriteLowerFirstUpperRest writes the first rune as upper case and the rest are separated by sep and written as lower case.
WriteSplitLowerFirstUpperRestRunes writes the first rune as upper case and the rest are separated by sep and written as lower case.
WriteSplitUpper writes all runes in elems separated by sep and written as lower case.
WriteSplitUpper writes all strings in elems separated by sep and written as upper case.
WriteSplitUpperRunes uses caser to upper case each rune and writes each to b, separated by sep.
WriteUpper uses caser to upper case the runes in s and writes to b.
WriteUpperFirstLowerRest writes the first rune as upper case and the rest as lower case.

# Variables

AzeriCaser is a Caser which uses unicode.AzeriCase rules.
No description provided by the author
Turkish is a Caser which uses unicode.TurkishCase rules.

# Structs

Unicode is a Caser which uses the default unicode casing functions.

# Interfaces

Caser is satisfied by types which can map runes to their lowercase and uppercase equivalents.

# Type aliases

NumberRules are a set of rules for determining if rune r at index of val should be considered a number Example: NumberRules{ '$': func(i int, r rune, v string) bool { return i == 0 }, }.