Versions in this module Expand all Collapse all v0 v0.0.47 Oct 31, 2023 v0.0.46 Oct 1, 2023 Changes in this version + var HTMLPolicy *bluemonday.Policy = bluemonday.StrictPolicy() + func After(value string, a string) (string, error) + func Before(value string, a string) (string, error) + func Between(value string, a string, b string) (string, error) + func ContainsAny(s string, ss ...string) bool + func ContainsAnyI(s string, ss ...string) bool + func EqualFoldAny(s string, ss ...string) bool + func HasPrefixAny(s string, prefixes ...string) bool + func HasPrefixAnyI(s string, prefixes ...string) bool + func HasPrefixI(s, prefix string) bool + func HasSuffixAny(s string, suffixes ...string) bool + func HasSuffixI(s, suffix string) bool + func IndexAny(s string, seps ...string) (int, string) + func IndexAt(s, sep string, n int) int + func IsCTRLC(s string) bool + func IsPrintable(s string) bool + func Join(elems []interface{}, sep string) string + func Normalize(data string) string + func NormalizeWithOptions(data string, options NormalizeOptions) string + func ReplaceAll(s, new string, olds ...string) string + func Reverse(s string) string + func SlideWithLength(s string, l int) chan string + func SplitAny(s string, seps ...string) []string + func TrimPrefixAny(s string, prefixes ...string) string + func TrimSuffixAny(s string, suffixes ...string) string + func Truncate(data string, maxSize int) string + type EncodingType uint8 + const Big5 + const EUCJP + const EUCKR + const GB18030 + const IBM420ltr + const IBM420rtl + const IBM424ltr + const IBM424rtl + const ISO2022CN + const ISO2022JP + const ISO2022KR + const ISO85591 + const ISO88592 + const ISO88595 + const ISO88596 + const ISO88597 + const ISO88598 + const KOI8R + const ShiftJIS + const UTF16BE + const UTF16LE + const UTF32BE + const UTF32LE + const UTF8 + const Unknown + const Windows1251 + const Windows1256 + func DetectEncodingType(data interface{}) (EncodingType, error) + type LongestSequence struct + Count int + Sequence string + func LongestRepeatingSequence(s string) LongestSequence + type NormalizeOptions struct + Lowercase bool + StripHTML bool + TrimSpaces bool + Uppercase bool + var DefaultNormalizeOptions NormalizeOptions = NormalizeOptions{ ... }