Documentation ¶
Index ¶
- func HasAnyOfPrefixes(input string, prefixes ...string) bool
- func HasAnyOfSuffixes(input string, suffixes ...string) bool
- func MatchCaptureGroups(regEx *regexp.Regexp, str string) map[string]string
- func SplitCommaSeparatedString(input string) []string
- func Tprintf(tmpl string, data map[string]interface{}) string
- type Color
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAnyOfPrefixes ¶
HasAnyOfPrefixes returns an indication if the given string has any of the given prefixes.
func HasAnyOfSuffixes ¶
HasAnyOfSuffixes returns an indication if the given string has any of the given suffixes.
func MatchCaptureGroups ¶
MatchCaptureGroups takes a regular expression and string and returns all of the named capture group results in a map.
func SplitCommaSeparatedString ¶ added in v0.72.0
SplitCommaSeparatedString returns a slice of strings separated from the input string by commas
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
func NewStringSet ¶
func NewStringSet() StringSet
func NewStringSetFromSlice ¶
Click to show internal directories.
Click to hide internal directories.