js

package
v0.0.0-...-a95bb51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 Any

func Any(s []string, pred func(string) bool) bool

func Color

func Color(colorString string) func(string, ...interface{}) string

func Contains

func Contains(s []string, str string) bool

func GetKind

func GetKind(c *config.Config, kindName string) string

func GetRuleAttributeStrings

func GetRuleAttributeStrings(rule *rule.Rule, attributeName string) []string

Version of rule.Rule.AttrStrings that never returns nil (returns an empty slice instead)

func HasPrefixes

func HasPrefixes(prefixes []string, x string) bool

func HasSuffixes

func HasSuffixes(suffixes []string, x string) bool

func MergeUnique

func MergeUnique(a []string, b []string) []string

func Remove

func Remove(s *[]string, r string)

func SliceFromStringSet

func SliceFromStringSet(input map[string]bool) []string

func SlicesEqual

func SlicesEqual(a []string, b []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL