Documentation
¶
Index ¶
- type Rule
- type RuleSet
- func (ruleset *RuleSet) AddRule(pattern string) error
- func (ruleset *RuleSet) AddRules(iterator iter.Seq2[string, error]) error
- func (ruleset *RuleSet) AddRulesFromArray(lines []string) error
- func (ruleset *RuleSet) AddRulesFromFile(filename string) error
- func (ruleset *RuleSet) AddRulesFromReader(rd io.Reader) error
- func (ruleset *RuleSet) IsExcluded(path string, isDir bool) bool
- func (ruleset *RuleSet) Match(path string, isDir bool) (bool, *Rule, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
func MustParseRule ¶
type RuleSet ¶
type RuleSet struct {
Rules []*Rule
}
func NewRuleSet ¶
func NewRuleSet() *RuleSet
func (*RuleSet) AddRulesFromArray ¶
func (*RuleSet) AddRulesFromFile ¶
Click to show internal directories.
Click to hide internal directories.