Documentation ¶
Index ¶
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 NewFromPatterns ¶
func (*Filter) AllowsPattern ¶
AllowsPattern returns whether the given filename is permitted by the inclusion/exclusion rules of this filter, as well as the pattern that either allowed or disallowed that filename.
In special cases, such as a nil `*Filter` receiver, the absence of any patterns, or the given filename not being matched by any pattern, the empty string "" will be returned in place of the pattern.
Click to show internal directories.
Click to hide internal directories.