Documentation
¶
Overview ¶
fnmatch pattern list
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blacklist ¶
type Blacklist []string
func (*Blacklist) Filter ¶
func (bl *Blacklist) Filter(items []Blacklistable) []Blacklistable
func (*Blacklist) Match ¶
func (bl *Blacklist) Match(item Blacklistable) string
func (*Blacklist) MatchString ¶
MatchString returns the first pattern that matches the item.
Use Check() before using MatchString(). panics if pattern is invalid. returns empty string if no match.
type Blacklistable ¶
type Blacklistable interface {
BlacklistKey() string
}
Click to show internal directories.
Click to hide internal directories.