Versions in this module Expand all Collapse all v0 v0.1.7 Jul 15, 2024 Changes in this version + type GitIgnore struct + func CompileIgnoreFile(fpath string) (*GitIgnore, error) + func CompileIgnoreFileAndLines(fpath string, lines ...string) (*GitIgnore, error) + func CompileIgnoreLines(lines ...string) *GitIgnore + func (gi *GitIgnore) MatchesPath(f string) bool + func (gi *GitIgnore) MatchesPathHow(f string) (bool, *IgnorePattern) + type IgnoreParser interface + MatchesPath func(f string) bool + MatchesPathHow func(f string) (bool, *IgnorePattern) + type IgnorePattern struct + Line string + LineNo int + Negate bool + Pattern *regexp.Regexp