Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Excluded ¶ added in v1.7.0
Excluded reports whether filePath should be dropped given ignore-paths and only-paths lists. A file is excluded if it matches any ignorePaths pattern; otherwise, when onlyPaths is non-empty, it is excluded unless it matches one of them. Patterns use MatchesPath semantics.
func MatchesPath ¶
MatchesPath reports whether filePath is covered by pattern. pattern may be a literal path, a directory prefix, a single-star glob (*, ?, [...]), or a double-star glob (**) where ** matches zero or more path segments. Both arguments are normalized to forward slashes for OS-independent behavior.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.