Versions in this module Expand all Collapse all v0 v0.0.1 May 17, 2022 Changes in this version + var ErrInvalidStartPosition = errors.New("start position is invalid") + var ErrInvalidStopPosition = errors.New("stop position is invalid") + func Contains(list []string, str string) bool + func Filter(s string, filter func(r rune) bool) string + func FirstN(s string, n int, ellipsis ...string) string + func HasEmpty(args ...string) bool + func NotEmpty(args ...string) bool + func Rand() string + func RandId() string + func Randn(n int) string + func Remove(strings []string, strs ...string) []string + func Reverse(s string) string + func Seed(seed int64) + func Substr(str string, start, stop int) (string, error) + func TakeOne(valid, or string) string + func TakeWithPriority(fns ...func() string) string + func Union(first, second []string) []string + type Replacer interface + Replace func(text string) string + func NewReplacer(mapping map[string]string) Replacer + type Trie interface + Filter func(text string) (string, []string, bool) + FindKeywords func(text string) []string + func NewTrie(words []string, opts ...TrieOption) Trie + type TrieOption func(trie *trieNode) + func WithMask(mask rune) TrieOption