Documentation ¶ Index ¶ type Filter func New(include, exclude []string) *Filter func NewFromPatterns(include, exclude []Pattern) *Filter func (f *Filter) Allows(filename string) bool func (f *Filter) Exclude() []string func (f *Filter) Include() []string type Pattern func NewPattern(p string) Pattern Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Filter ¶ type Filter struct { // contains filtered or unexported fields } func New ¶ func New(include, exclude []string) *Filter func NewFromPatterns ¶ func NewFromPatterns(include, exclude []Pattern) *Filter func (*Filter) Allows ¶ func (f *Filter) Allows(filename string) bool func (*Filter) Exclude ¶ func (f *Filter) Exclude() []string Exclude returns the result of calling String() on each Pattern in the exclude set of this *Filter. func (*Filter) Include ¶ func (f *Filter) Include() []string Include returns the result of calling String() on each Pattern in the include set of this *Filter. type Pattern ¶ type Pattern interface { Match(filename string) bool // String returns a string representation (see: regular expressions) of // the underlying pattern used to match filenames against this Pattern. String() string } func NewPattern ¶ func NewPattern(p string) Pattern Source Files ¶ View all Source files filepathfilter.go Click to show internal directories. Click to hide internal directories.