Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithExcludeGlobs ¶
func WithExcludeGlobs(excludes ...string) globFilterOpt
WithExcludeGlobs adds exclude globs to the filter.
func WithIncludeGlobs ¶
func WithIncludeGlobs(includes ...string) globFilterOpt
WithIncludeGlobs adds include globs to the filter.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a generic filter for excluding and including globs (limited regular expressions). Exclusion takes precedence if both include and exclude lists are provided.
func NewGlobFilter ¶
NewGlobFilter creates a new Filter with the provided options.
func (*Filter) ShouldInclude ¶
ShouldInclude returns whether the object is in the include list or not in the exclude list (exclude taking precedence).
Click to show internal directories.
Click to hide internal directories.