Versions in this module Expand all Collapse all v2 v2.1.0 Aug 22, 2022 Changes in this version + type MatchResult int + const Exclude + const Include + const NoMatch + type Matcher interface + Match func(path []string, isDir bool) bool + func NewMatcher(ps []Pattern) Matcher + type Pattern interface + Match func(path []string, isDir bool) MatchResult + func LoadGlobalPatterns(fs billy.Filesystem) (ps []Pattern, err error) + func LoadSystemPatterns(fs billy.Filesystem) (ps []Pattern, err error) + func ParsePattern(p string, domain []string) Pattern + func ReadPatterns(fs billy.Filesystem, path []string) (ps []Pattern, err error)