Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exclude ¶
type Exclude struct {
Glob Glob
}
Exclude files that match Glob.
func (Exclude) MarshalText ¶
MarshalText converts the filter into a string.
type Filter ¶
type Filter interface { encoding.TextMarshaler // contains filtered or unexported methods }
Filter narrows what files are chosen.
type Filters ¶
type Filters []Filter
Filters is a slice of items implementing the Filter interface. It adds support for JSON unmarshaling and evaluating filters.
func (Filters) Match ¶
Match finds the first matching filter and returns its Kind, or Include if no filter matched.
func (*Filters) UnmarshalJSON ¶
UnmarshalJSON converts JSON data into the concrete types implementing the Filter interface.
type Glob ¶
type Glob string
Glob is a pattern that can be used to match inputs. See path.Match for the syntax.
func (*Glob) MarshalText ¶
MarshalText converts the glob into a string.
func (*Glob) UnmarshalText ¶
UnmarshalText converts a string into a glob, checking it for syntax errors.