Documentation ¶
Index ¶
- func Concat(strs ...string) string
- func EllipsisString(str string, length int) string
- func EndsWith(str string, suffix string) bool
- func EndsWithAny(str string, suffixes ...string) bool
- func EndsWithAnyIgnoreCase(str string, suffixes ...string) bool
- func EndsWithIgnoreCase(str string, suffix string) bool
- func FirstLetter(name string) string
- func Hash32(str string) uint32
- func HashSHA1(str string) string
- func IsAllLowerCase(str string) bool
- func IsAllUpperCase(str string) bool
- func IsAlpha(str string) bool
- func IsAlphaSpace(str string) bool
- func IsAlphanumeric(str string) bool
- func IsAlphanumericSpace(str string) bool
- func IsAnyBlank(strings ...string) bool
- func IsAnyEmpty(strings ...string) bool
- func IsBlank(s string) bool
- func IsEmpty(s string) bool
- func IsLetter(ch rune) bool
- func IsNoneBlank(strings ...string) bool
- func IsNoneEmpty(strings ...string) bool
- func IsNotBlank(s string) bool
- func IsNotEmpty(s string) bool
- func IsNullOrEmpty(val string) bool
- func IsNumeric(str string) bool
- func IsNumericSpace(str string) bool
- func IsWhitespace(str string) bool
- func Join(a []string, sep string) string
- func JoinBool(a []bool, sep string) string
- func JoinFloat64(a []float64, sep string) string
- func JoinFloat64WithFormatAndPrecision(a []float64, fmt byte, precision int, sep string) string
- func JoinInt(a []int, sep string) string
- func JoinInt64(a []int64, sep string) string
- func JoinUint64(ints []uint64, sep string) string
- func Left(str string, size int) string
- func StartsWith(str string, prefix string) bool
- func StartsWithAny(str string, prefixes ...string) bool
- func StartsWithAnyIgnoreCase(str string, prefixes ...string) bool
- func StartsWithIgnoreCase(str string, prefix string) bool
- func Trim(str string) string
- func TruncateString(str string, limit int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EllipsisString ¶
func EndsWithAny ¶
EndsWithAny check if a string ends with any of an array of specified strings.
func EndsWithAnyIgnoreCase ¶
EndsWithAnyIgnoreCase check if a string ends with any of an array of specified strings (ignoring case).
func EndsWithIgnoreCase ¶
EndsWithIgnoreCase case insensitive check if a string ends with a specified suffix.
func FirstLetter ¶ added in v0.3.8
func IsAllLowerCase ¶
IsAllLowerCase checks if the string contains only lowercase characters.
func IsAllUpperCase ¶
IsAllUpperCase checks if the string contains only uppercase characters.
func IsAlphaSpace ¶
IsAlphaSpace checks if the string contains only Unicode letters and spaces.
func IsAlphanumeric ¶
IsAlphanumeric checks if the string contains only Unicode letters and digits.
func IsAlphanumericSpace ¶
IsAlphanumericSpace checks if the string contains only Unicode letters, digits and spaces.
func IsAnyBlank ¶
IsAnyBlank checks if any one of the strings are empty or containing only whitespaces.
func IsAnyEmpty ¶
IsAnyEmpty checks if any one of the given strings are empty.
func IsNoneBlank ¶
IsNoneBlank checks if none of the strings are empty or containing only whitespaces.
func IsNoneEmpty ¶
IsNoneEmpty checks if none of the strings are empty.
func IsNotBlank ¶
IsNotBlank checks if a string is not empty or containing only whitespaces.
func IsNullOrEmpty ¶ added in v0.3.11
func IsNumericSpace ¶
IsNumericSpace checks if the string contains only digits and whitespace.
func IsWhitespace ¶
IsWhitespace checks if the string contains only whitespace.
func Join ¶
Join joins an array of strings into a string where each item of the array is separated with a separator.
func JoinFloat64 ¶
JoinFloat64 is the same as Join but joining float64. The default format given to strconv.FormatFloat is 'G' and bitSize is 32.
func JoinFloat64WithFormatAndPrecision ¶
JoinFloat64WithFormatAndPrecision is the same as Join but joining float64 with a custom precision (bitSize) and format.
func JoinUint64 ¶
JoinUint64 is the same as Join but joining uint64.
func StartsWith ¶
StartsWith check if a string starts with a specified prefix.
func StartsWithAny ¶
StartsWithAny check if a string starts with any of an array of specified strings.
func StartsWithAnyIgnoreCase ¶
StartsWithAnyIgnoreCase check if a string starts with any of an array of specified strings (ignoring case).
func StartsWithIgnoreCase ¶
StartsWithIgnoreCase case insensitive check if a string starts with a specified prefix.
func TruncateString ¶
Types ¶
This section is empty.