Documentation ¶
Index ¶
- Variables
- func AsString(item fmt.Stringer) string
- func AsStrings(items ...fmt.Stringer) []string
- func Capitalize[T ~string](s T) string
- func Contains[T ~string, S ~string](s S, substr T) bool
- func ContainsAny[T ~string, S ~string](s S, items ...T) bool
- func ContainsAnyIgnoreCase[T ~string, S ~string](s S, items ...T) bool
- func ContainsNone[T ~string, S ~string](s S, items ...T) bool
- func ContainsNoneIgnoreCase[T ~string, S ~string](s S, items ...T) bool
- func EndsWith[T ~string, U ~string](s T, prefix U) bool
- func Equal[T ~string](s T, v string) bool
- func EqualFold[T ~string](s T, v string) bool
- func EqualIgnoreCase[T ~string](s T, v string) bool
- func FindNonEmpty[T ~string](items ...T) (T, bool)
- func FindNonZero[T ~string](items ...T) (T, bool)
- func HasPrefix[T ~string, U ~string](s T, prefix U) bool
- func HasSuffx[T ~string, U ~string](s T, prefix U) bool
- func IsEmpty[T ~string](s T) bool
- func IsLetters(s string) bool
- func IsLettersAndNumbers(s string) bool
- func IsLowercaseLetters(s string) bool
- func IsNumbers(s string) bool
- func IsUppercaseLetters(s string) bool
- func IsVisibleCharacters(s string) bool
- func IsZero[T ~string](s T) bool
- func Join[T ~string](sep string, items ...T) string
- func Lowercase[T ~string](s T) string
- func LowercaseFirst[T ~string](s T) string
- func Remove[T ~string, U ~string](s T, remove U) string
- func Replace[T ~string, U ~string, V ~string](s T, old U, new V) string
- func ReplaceInList[T ~string](s T, olds []string, new string) string
- func ReplaceLetters[T ~string](s T, replacement string) string
- func ReplaceNonLetters[T ~string](s T, replacement string) string
- func ReplaceNonNumbers[T ~string](s T, replacement string) string
- func ReplaceNonWord[T ~string](s T, replacement string) string
- func ReplaceNumbers[T ~string](s T, replacement string) string
- func ReplaceSymbols[T ~string](s T, replacement string) string
- func Reverse[T ~string](s T) string
- func Split[T ~string](s T, sep string) []string
- func SplitAny[T ~string](s T, items ...string) []string
- func SplitFn[T ~string](s T, fn func(string) bool) []string
- func StartsWith[T ~string, U ~string](s T, prefix U) bool
- func Title[T ~string](s T) string
- func ToLower[T ~string](s T) string
- func ToLowerFirst[T ~string](s T) string
- func ToUpper[T ~string](s T) string
- func ToUpperFirst[T ~string](s T) string
- func Trim[T ~string](s T, set string) T
- func TrimFunc[T ~string](s T, fn func(rune) bool) T
- func TrimFuncLeft[T ~string](s T, fn func(rune) bool) T
- func TrimFuncRight[T ~string](s T, fn func(rune) bool) T
- func TrimLeft[T ~string](s T, set string) T
- func TrimPrefix[T ~string](s T, prefix string) T
- func TrimRight[T ~string](s T, set string) T
- func TrimRunes[T ~string](s T, set ...rune) T
- func TrimRunesLeft[T ~string](s T, set ...rune) T
- func TrimRunesRight[T ~string](s T, set ...rune) T
- func TrimSpace[T ~string](s T) T
- func TrimSpaceLeft[T ~string](s T) T
- func TrimSpaceRight[T ~string](s T) T
- func TrimSuffix[T ~string](s T, suffix string) T
- func TruncateBegin[T ~string](s T, w int) string
- func TruncateBeginWith[T ~string](s T, w int, m string) string
- func TruncateEnd[T ~string](s T, w int) string
- func TruncateEndWith[T ~string](s T, w int, m string) string
- func Uppercase[T ~string](s T) string
- func UppercaseFirst[T ~string](s T) string
- type Builder
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Capitalize ¶
func ContainsAny ¶
func ContainsAnyIgnoreCase ¶
func ContainsNone ¶
func ContainsNoneIgnoreCase ¶
func EqualIgnoreCase ¶
func FindNonEmpty ¶ added in v1.0.26
func FindNonZero ¶
func IsLettersAndNumbers ¶
func IsLowercaseLetters ¶
func IsUppercaseLetters ¶
func IsVisibleCharacters ¶
func LowercaseFirst ¶
func ReplaceLetters ¶
func ReplaceNonLetters ¶
func ReplaceNonNumbers ¶
func ReplaceNonWord ¶
func ReplaceNumbers ¶
func ReplaceSymbols ¶
func StartsWith ¶
func ToLowerFirst ¶
func ToUpperFirst ¶
func TrimFuncLeft ¶
func TrimFuncRight ¶
func TrimPrefix ¶
func TrimRunesLeft ¶
func TrimRunesRight ¶
func TrimSpaceLeft ¶
func TrimSpaceLeft[T ~string](s T) T
func TrimSpaceRight ¶
func TrimSpaceRight[T ~string](s T) T
func TrimSuffix ¶
func TruncateBegin ¶
func TruncateEnd ¶
func UppercaseFirst ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.