Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasExcludedPathSegment ¶ added in v0.0.8
HasExcludedPathSegment reports whether file has any path component that exactly equals one of the given segment names. Backslashes are normalized to slashes; empty components and empty segment entries are ignored.
Types ¶
type LegacyOptions
deprecated
type Options ¶
type Options struct {
Suffix []string // include .go
ExcludeSuffix []string // exclude _test.go
Include []string
Exclude []string
// ExcludePathSegments drops files whose path has any exact path-component
// matching a listed name (e.g. "vendor", "node_modules"). Callers supply
// the list; the library does not hardcode defaults.
ExcludePathSegments []string
}
func (*Options) MatchSuffix ¶
Click to show internal directories.
Click to hide internal directories.