Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadPattern = path.ErrBadPattern
ErrBadPattern represents a bad glob pattern.
Functions ¶
func Glob ¶
func Glob(matches map[string]os.FileInfo, pattern string, ignores []string, traverseDirs bool) (map[string]os.FileInfo, error)
Glob returns a map[string]os.FileInfo based on the provided glob. It will ignore any paths included in the ignores argument. When matching with a directory, if traverseDirs is true, it will traverse the directory, if it is false it will return the directory without traversing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.