Documentation ¶
Index ¶
- Variables
- func Any(s []string, pred func(string) bool) bool
- func Color(colorString string) func(string, ...interface{}) string
- func Contains(s []string, str string) bool
- func GetKind(c *config.Config, kindName string) string
- func GetRuleAttributeStrings(rule *rule.Rule, attributeName string) []string
- func HasPrefixes(prefixes []string, x string) bool
- func HasSuffixes(suffixes []string, x string) bool
- func MergeUnique(a []string, b []string) []string
- func Remove(s *[]string, r string)
- func SliceFromStringSet(input map[string]bool) []string
- func SlicesEqual(a []string, b []string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Green = Color("\033[1;32m%s\033[0m") Red = Color("\033[1;31m%s\033[0m") Teal = Color("\033[1;36m%s\033[0m") White = Color("\033[1;37m%s\033[0m") Yellow = Color("\033[1;33m%s\033[0m") )
View Source
var ( Info = Teal Warn = Yellow Err = Red )
Functions ¶
func GetRuleAttributeStrings ¶
Version of rule.Rule.AttrStrings that never returns nil (returns an empty slice instead)
func HasPrefixes ¶
func HasSuffixes ¶
func MergeUnique ¶
func SliceFromStringSet ¶
func SlicesEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.