Documentation ¶
Overview ¶
DEPRECATED: this has been moved to go-secure-stdlib and will be removed
Index ¶
- func AppendIfMissing(slice []string, i string) []string
- func Difference(a, b []string, lowercase bool) []string
- func EqualStringMaps(a, b map[string]string) bool
- func EquivalentSlices(a, b []string) bool
- func GetString(m map[string]interface{}, key string) (string, error)
- func GlobbedStringsMatch(item, val string) bool
- func MergeSlices(args ...[]string) []string
- func ParseArbitraryKeyValues(input string, out map[string]string, sep string) error
- func ParseArbitraryStringSlice(input string, sep string) []string
- func ParseDedupAndSortStrings(input string, sep string) []string
- func ParseDedupLowercaseAndSortStrings(input string, sep string) []string
- func ParseKeyValues(input string, out map[string]string, sep string) error
- func ParseStringSlice(input string, sep string) []string
- func RemoveDuplicates(items []string, lowercase bool) []string
- func RemoveDuplicatesStable(items []string, caseInsensitive bool) []string
- func RemoveEmpty(items []string) []string
- func StrListContains(haystack []string, needle string) bool
- func StrListContainsCaseInsensitive(haystack []string, needle string) bool
- func StrListContainsGlob(haystack []string, needle string) bool
- func StrListDelete(s []string, d string) []string
- func StrListSubset(super, sub []string) bool
- func TrimStrings(items []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
func Difference ¶
func EqualStringMaps ¶
func EquivalentSlices ¶
func GlobbedStringsMatch ¶
func MergeSlices ¶
func ParseArbitraryKeyValues ¶
func ParseStringSlice ¶
func RemoveDuplicates ¶
func RemoveDuplicatesStable ¶ added in v0.1.10
func RemoveEmpty ¶
func StrListContains ¶
func StrListContainsCaseInsensitive ¶ added in v0.2.1
func StrListContainsGlob ¶
func StrListDelete ¶
func StrListSubset ¶
func TrimStrings ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.