Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
func Compile ¶
Compile takes a list of string filters and returns a Filter interface for matching a given string against the filter list. The filter list supports glob matching too, ie:
f, _ := Compile([]string{"cpu", "mem", "net*"}) f.Match("cpu") // true f.Match("network") // true f.Match("memory") // false
type IncludeExcludeFilter ¶
type IncludeExcludeFilter struct {
// contains filtered or unexported fields
}
func (*IncludeExcludeFilter) Match ¶
func (f *IncludeExcludeFilter) Match(s string) bool
Click to show internal directories.
Click to hide internal directories.