Documentation ¶
Index ¶
- func AsString(elem fmt.Stringer) string
- func AsStrings(elems ...fmt.Stringer) []string
- func Capitalize[T ~string](s T) string
- func Chunk[T ~string](size int, s T) []string
- func Contains[T ~string, S ~string](s S, substr T) bool
- func ContainsAny[T ~string, S ~string](s S, elems ...T) bool
- func ContainsAnyIgnoreCase[T ~string, S ~string](s S, elems ...T) bool
- func ContainsIgnoreCase[T ~string, S ~string](s S, substr T) bool
- func ContainsNone[T ~string, S ~string](s S, elems ...T) bool
- func ContainsNoneIgnoreCase[T ~string, S ~string](s S, elems ...T) bool
- func EndsWith[T ~string, U ~string | ~byte](s T, suffixes ...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](elems ...T) (T, bool)
- func FindNonZero[T ~string](elems ...T) (T, bool)
- func FirstNonSpace[T ~string | ~byte](s T) int
- func HasPrefix[T ~string, U ~string](s T, prefixes ...U) bool
- func HasSuffx[T ~string, U ~string | ~byte](s T, prefixes ...U) bool
- func IsDefined[T ~string](s T) bool
- func IsEmpty[T ~string](s T) bool
- func IsZero[T ~string](s T) bool
- func Join[T ~string](sep string, elems ...T) string
- func Lowercase[T ~string](s T) string
- func LowercaseFirst[T ~string](s T) string
- func Remove[T ~string](s T, remove string) string
- func Replace[T ~string](s T, new string, olds ...string) string
- func Reverse[T ~string](s T) string
- func SpaceToTab[T ~string | ~byte](s T, tabWidth int) string
- func Split[T ~string](s T, sep string) []string
- func SplitAny[T ~string](s T, elems ...string) []string
- func SplitFn[T ~string](s T, fn func(string) bool) []string
- func StartsWith[T ~string, U ~string](s T, prefixes ...U) bool
- func TabToSpace[T ~string | ~byte](s T, tabWidth int) string
- 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 ¶
This section is empty.
Functions ¶
func Capitalize ¶
func ContainsAny ¶
func ContainsAnyIgnoreCase ¶
func ContainsIgnoreCase ¶ added in v1.0.31
func ContainsNone ¶
func ContainsNoneIgnoreCase ¶
func EqualIgnoreCase ¶
func FindNonEmpty ¶ added in v1.0.26
func FindNonZero ¶
func FirstNonSpace ¶ added in v1.0.37
func LowercaseFirst ¶
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.