Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings
func (StringSlice) IsEmpty ¶
func (slice StringSlice) IsEmpty() bool
IsEmpty checks if length of slice is greater than zero
func (StringSlice) IsExcluded ¶
func (slice StringSlice) IsExcluded(str string) bool
IsExcluded determines whether or not a given string is excluded in terms of a blacklist StringSlice. If the StringSlice is empty, then all provided strings are considered not excluded. If the provided string exists within the StringSlice, then it is considered excluded.
func (StringSlice) IsIncluded ¶
func (slice StringSlice) IsIncluded(str string) bool
IsIncluded determines whether or not a given string is included in terms of a whitelist StringSlice. If the StringSlice is empty, then all provided strings are considered included. If the StringSlice is not empty, then only strings that exist in the StringSlice will be considered included.
func (StringSlice) IsRegexExcluded ¶
func (slice StringSlice) IsRegexExcluded(str string) bool
IsRegexExcluded determines whether or not a given string is excluded in terms of a blacklist RegexSlice of regular expressions. If the RegexSlice is empty, then all provided strings are considered not excluded. If the provided string exists within the RegexSlice regular expressions, then it is considered excluded.
func (StringSlice) IsRegexIncluded ¶
func (slice StringSlice) IsRegexIncluded(str string) bool
IsRegexIncluded determines whether or not a given string is included in terms of a whitelist RegexSlice of regular expressions. If the RegexSlice is empty, then all provided strings are considered included. If the RegexSlice is not empty, then only strings that exist in the RegexSlice regular expressions will be considered included.