Versions in this module Expand all Collapse all v0 v0.5.0 Nov 21, 2024 Changes in this version + func Bytes(s string) []byte + func Capitalize(s string) string + func Concat(strs ...string) string + func ConcatWithSeparator(strs []string, separator string) string + func ContainsAny(s string, substrings []string) bool + func CountOccurrences(s, substr string) int + func DecodeBase64(s string) (string, error) + func EncodeBase64(s string) string + func Format(template string, args ...interface{}) string + func HasBlank(s string) bool + func HasEmpty(strs ...string) bool + func HasNoBlank(s string) bool + func HasNoEmpty(strs ...string) bool + func IsBlank(s string) bool + func IsEmpty(s string) bool + func IsNumeric(s string) bool + func JoinNonEmpty(strs []string, separator string) string + func LevenshteinDistance(a, b string) int + func NotBlank(s string) bool + func NotEmpty(s string) bool + func PadLeft(s string, length int, padChar rune) string + func PadRight(s string, length int, padChar rune) string + func Pluralize(word string, count int) string + func RandomString(length int, charset string, secure ...bool) (string, error) + func RegexReplace(s, pattern, replacement string) (string, error) + func RemoveDuplicates(s string) string + func RemoveNonAlphaNumeric(s string) string + func RemovePrefix(s, prefix string) string + func RemoveSuffix(s, suffix string) string + func Reverse(s string) string + func Slugify(s string) string + func SplitAt(s string, index int) (string, string) + func Str(b []byte) string + func StripControlChars(s string) string + func Sub(s string, start, length int) string + func Substring(s string, start, end int) string + func ToCamelCase(s string) string + func ToLower(s string) string + func ToSnakeCase(s string) string + func ToUpper(s string) string + func URLSafeDecodeBase64(s string) (string, error) + func URLSafeEncodeBase64(s string) string + func WordWrap(s string, width int) string