glob

package
v0.0.0-...-d46617c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL