Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizePath ¶
NormalizePath normalizes a slash-separated path for glob matching.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher matches paths against a list of compiled glob patterns.
func NewMatcher ¶
NewMatcher compiles a list of glob patterns into a Matcher.
func (*Matcher) CanMatchDescendant ¶
CanMatchDescendant reports whether any pattern can match under dir.
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
Pattern is a compiled glob pattern that can match full paths.
func (*Pattern) CanMatchDescendant ¶
CanMatchDescendant reports whether the pattern can match any descendant of dir.
Click to show internal directories.
Click to hide internal directories.