Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
Matcher provides a method that returns the match type.
- Match: file should be scanned
- GitIgnore: ignored due to .gitignore
- GlobIgnore: ignored due to glob pattern
func NewMatcher ¶
NewMatcher returns a Matcher. If a git repository is found on the provided path or on a parent directory, all .gitignore files are respected. The provided glob provides an additional filter.
If a glob pattern is not needed, pass '*'.
Click to show internal directories.
Click to hide internal directories.