Documentation
¶
Overview ¶
Package usnfilter provides convenient USN filtering functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
And creates a new filter that returns true only when each filter in filters returns true.
If filters is empty, nil, or composed solely of nil filters, a nil filter will be returned.
func Or ¶
Or creates a new filter that returns true when at least one of the given filters returns true.
If filters is empty, nil, or composed solely of nil filters, a nil filter will be returned.
func PathContains ¶
PathContains returns a filter that returns true when a record's path contains the given substring. If the record does not specify a path its filename will be used instead. The match is case-insensitive.
func PathPrefix ¶
PathPrefix returns a filter that returns true when a record's path starts with the given prefix. If the record does not specify a path its filename will be used instead. The match is case-insensitive.
Types ¶
This section is empty.