Documentation
¶
Overview ¶
Package filter provides helpers for creating the inclusion and exclusion filters used by ajfs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePathRegex ¶
Given a slice of strings that contain regular expressions to be used in building the include or exclude filters this will split them depending on whether each regex is prefixed with "f:" for file paths or "d:" for directory paths. If neither prefix is found then the expression will be added to both file and directory.
func ParsePathRegexToMatchPathFn ¶
func ParsePathRegexToMatchPathFn(input []string, include bool) (file.MatchPathFn, file.MatchPathFn, error)
Parse the slice of strings (same as ParsePathRegex) and return the path matcher function to be used. include determines if the matchers will be used for includer or exclude filtering.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.