Versions in this module Expand all Collapse all v0 v0.6.0 Aug 22, 2023 v0.5.0 Sep 30, 2022 Changes in this version + func Matches(file string, patterns []string) (bool, error) + func MatchesOrParentMatches(file string, patterns []string) (bool, error) + type MatchInfo struct + type Pattern struct + func (p *Pattern) Exclusion() bool + func (p *Pattern) String() string + type PatternMatcher struct + func New(patterns []string) (*PatternMatcher, error) + func (pm *PatternMatcher) Exclusions() bool + func (pm *PatternMatcher) Matches(file string) (bool, error) + func (pm *PatternMatcher) MatchesOrParentMatches(file string) (bool, error) + func (pm *PatternMatcher) MatchesUsingParentResult(file string, parentMatched bool) (bool, error) + func (pm *PatternMatcher) MatchesUsingParentResults(file string, parentMatchInfo MatchInfo) (bool, MatchInfo, error) + func (pm *PatternMatcher) Patterns() []*Pattern