Versions in this module Expand all Collapse all v0 v0.0.5 Mar 4, 2021 Changes in this version + const IgnoreFile + type BaseRule string + func (r BaseRule) Match(name string) (bool, error) + type EmptyRule string + func (r EmptyRule) Match(name string) (bool, error) + type Filter []Rule + func Load(dir string) (Filter, error) + func New(dir string, patterns ...string) Filter + func (f Filter) Match(name string) bool + func (f Filter) Merge(other Filter) Filter + type NegateRule struct + func (r NegateRule) Match(name string) (bool, error) + type PathRule string + func (r PathRule) Match(name string) (bool, error) + type Rule interface + Match func(string) (bool, error) + func ParseRule(dir, pattern string) Rule