Versions in this module Expand all Collapse all v0 v0.1.4 Feb 24, 2020 v0.1.3 Oct 28, 2019 Changes in this version + func Copy(src []string) (dst []string) + func SortReverseStable(s []string) + func SortStable(s []string) + func StringKeyPtr(m *map[string]string, targetKey string) (*string, func(), error) + func TruncateAppendHint(s string, max int, hint string) string + func TruncatePrependHint(s string, max int, hint string) string + type Replace struct + Limit int + New string + Old string + type ReplaceSet map[string]Replace + func (s *ReplaceSet) Add(old, new string, limit int) *ReplaceSet + func (s *ReplaceSet) InByte(subject []byte) []byte + func (s *ReplaceSet) InString(subject string) string + type Set struct + func NewSet() *Set + func (s *Set) Add(el string) bool + func (s *Set) AddSet(sets ...*Set) *Set + func (s *Set) AddSlice(slices ...[]string) *Set + func (s *Set) Clear() + func (s *Set) Contains(el string) bool + func (s *Set) Copy() *Set + func (s *Set) Diff(other *Set) *Set + func (s *Set) Equals(other *Set) bool + func (s *Set) Len() int + func (s *Set) Remove(el string) bool + func (s *Set) Slice() []string + func (s *Set) SortedReverseSlice() []string + func (s *Set) SortedSlice() []string