Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rule ¶
type RuleGroup ¶
A RuleGroup can be converted into a list of rules. Each rule will point to the same tag, and have the same exclude set.
func NewRuleGroup ¶
type RuleSet ¶
type RuleSet struct {
// contains filtered or unexported fields
}
func NewRuleSet ¶
func NewRuleSet() *RuleSet
func NewRuleSetFromList ¶
func (*RuleSet) AddRuleGroup ¶
func (*RuleSet) ListRules ¶
ListRules returns rules used in the ruleset sorted by the rules' FirstCount. This is the number of times the given rule was the best match to an input.
func (*RuleSet) MatchRules ¶
MatchRules will return a list of all matching rules. The rules are sorted by the match's "score". The best match will be first.
Click to show internal directories.
Click to hide internal directories.