Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2026 Changes in this version + const EmailAt + const EmailTagStart + func ABTest(data, salt []byte, groups ...uint64) uint64 + func Between(data string, keys ...string) string + func ByteSliceToString(b []byte) string + func CRC16(field string) uint16 + func CRC32(field string) uint32 + func CommonString(str string) string + func EmailDomain(email string) string + func EmailUserName(email string) string + func GetShortID() ([]byte, error) + func GetTinyID() ([]byte, error) + func HashName(name string) string + func MaskField(str string, keepUnmaskedFront int, keepUnmaskedEnd int) string + func NFDLowerString(str string) string + func RandStringBytes(n int) string + func SafeGet[T any](ptr *T, defaultValue T) T + func SanitizeEmail(email string) string + func SimHash(data []byte) uint64 + func SimHashCompare(val1, val2 uint64) uint8 + func Sort(values []interface{}, c comparator.Comparator) error + func SplitBetweenTokens(data string, keys ...string) []string + func SplitByChunks(s string, chunkSize int) []string + type SafeList struct + func NewSafeList[K any](data ...K) *SafeList[K] + func (s *SafeList[V]) Add(value V) + func (s *SafeList[V]) Clear() []V + func (s *SafeList[V]) Count() int + func (s *SafeList[V]) List() []V + type SafeMap struct + func NewSafeMap[K string, V any](data map[K]V) *SafeMap[K, V] + func (s *SafeMap[K, V]) Exists(name K) bool + func (s *SafeMap[K, V]) Get(name K) (V, bool) + func (s *SafeMap[K, V]) GetMap() map[K]V + func (s *SafeMap[K, V]) Remove(name K) + func (s *SafeMap[K, V]) Set(name K, value V)