Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PatternMatcher ¶
type PatternMatcher struct {
// contains filtered or unexported fields
}
PatternMatcher is a type that matches file names against excluded names
func NewMatcherFromReader ¶
func NewMatcherFromReader(reader io.Reader) (*PatternMatcher, error)
NewMatcherFromReader creates a new ExcludesMatcher from a reader
func (*PatternMatcher) Matches ¶
func (e *PatternMatcher) Matches(path string) bool
Matches tests whether a line matches one of the patterns to be excluded
type SimplePrefixMatcher ¶
type SimplePrefixMatcher struct {
Prefix string
}
func NewSimplePrefixMatcher ¶
func NewSimplePrefixMatcher(prefix string) *SimplePrefixMatcher
func (*SimplePrefixMatcher) Matches ¶
func (m *SimplePrefixMatcher) Matches(relativePath string) bool
Click to show internal directories.
Click to hide internal directories.