Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + func Matches(file string, patterns []string, opts ...Option) (bool, error) + type Option func(*PatternMatcher) + func WithRegexpProvider(p RegexpProvider) Option + type Pattern struct + func (p *Pattern) String() string + type PatternMatcher struct + func NewPatternMatcher(patterns []string, opts ...Option) (*PatternMatcher, error) + func (pm *PatternMatcher) Exclusions() []*Pattern + func (pm *PatternMatcher) Matches(file string) bool + func (pm *PatternMatcher) MatchesAny(files []string) bool + func (pm *PatternMatcher) Patterns() []*Pattern + type RegexpProvider func(string) (*regexp.Regexp, error)