Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IgnoreRule ¶
type IgnoreRule struct { HasStartAnchor bool // true if the rule begin with / IsPattern bool // true if the rule contains * Pattern *regexp.Regexp // the regexp pattern of the string rule }
func (*IgnoreRule) String ¶
func (p *IgnoreRule) String() string
type Ignored ¶
type Ignored struct {
Rules []IgnoreRule
}
func (*Ignored) Append ¶
Append a rule to the Ignored instance. If the rule is starting with a #, it is not added, it returns nil. If the rule is empty, it is not added, it returns nil. If the rule cannot be computed to a regexp, it returns an error. When the rule was added, it returns nil.
func (*Ignored) ComputeDirectory ¶
Click to show internal directories.
Click to hide internal directories.