Documentation ¶
Index ¶
- func ContainsString(strings []string, candidate string) bool
- func HasAnyPrefix(s string, prefixes ...string) bool
- func IntersectStringSlice(slices ...[]string) []string
- func StringSliceWithout(vals []string, remove ...string) []string
- func UnionStringMaps(maps ...map[string]string) map[string]string
- func UniqueStrings(strings []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func HasAnyPrefix ¶
HasAnyPrefix returns true if any of the provided prefixes match the given string s
func IntersectStringSlice ¶
IntersectStringSlice takes the intersection of the slices. Semantically: 1. [],[a,b] -> []: Empty set will always result in [] 2. nil,[a,b] -> [a,b]: Nil is the universal set and does not constrain 3. ([a,b],[b]) -> [b]: Takes the intersection of the two sets
func StringSliceWithout ¶
func UnionStringMaps ¶
UnionStringMaps merges all key value pairs into a single map, last write wins.
func UniqueStrings ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.