Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatcherFunc ¶
type RuleSet ¶
type RuleSet struct { DefaultInclude bool // contains filtered or unexported fields }
func (*RuleSet) FlagValues ¶
func (s *RuleSet) FlagValues(f MatcherFunc) (include, exclude flag.Value)
For integration with flag.Var
func (*RuleSet) Includes ¶
A later Matcher takes precedence over an earlier one relative to the order added. Default (before matching any rules) is the opposite of the first Include/Exclude type. E.g., a list beginning with Include has an implicit "Exclude all" base rule, and vice versa. Empty RuleSet returns DefaultInclude.
Click to show internal directories.
Click to hide internal directories.