Versions in this module Expand all Collapse all v1 v1.1.0 Feb 9, 2026 Changes in this version + func Walk(root string, fn func(path string, d fs.DirEntry) error) error + type MatchResult struct + Ignored bool + Line int + Matched bool + Negate bool + Pattern string + Source string type Matcher + func NewFromDirectory(root string) *Matcher + func (m *Matcher) Errors() []PatternError + func (m *Matcher) MatchDetail(relPath string) MatchResult + func (m *Matcher) MatchPath(relPath string, isDir bool) bool + type PatternError struct + Line int + Message string + Pattern string + Source string + func (e PatternError) Error() string v1.0.0 Feb 9, 2026 v0 v0.1.0 Feb 9, 2026 Changes in this version + type Matcher struct + func New(root string) *Matcher + func (m *Matcher) AddFromFile(absPath, relDir string) + func (m *Matcher) AddPatterns(data []byte, dir string) + func (m *Matcher) Match(relPath string) bool