Documentation ¶
Index ¶
Constants ¶
View Source
const ( STAR = `([^/]*)` GLOBSTER = `((?:[^/]*(?:\/|$))*)` )
Variables ¶
This section is empty.
Functions ¶
func Match ¶
func Match(p *ParsedPattern, path string) bool
Types ¶
type Options ¶
func IgnorePattern ¶
type ParsedPattern ¶
type ParsedPattern struct { // input is the original glob pattern Input string RegExp *regexp.Regexp IsGlobstar bool // base is the base folder that can be used for matching a glob. // For example if a glob starts with `src/**/*.ts` we don't need to crawl all // folders in the current working directory as we see the `src` as base folder Base string // contains filtered or unexported fields }
func Parse ¶
func Parse(input string) (*ParsedPattern, error)
func (*ParsedPattern) Compile ¶
func (p *ParsedPattern) Compile() (*ParsedPattern, error)
func (*ParsedPattern) String ¶
func (p *ParsedPattern) String() string
type Patterns ¶
type Patterns = map[string]*ParsedPattern
Click to show internal directories.
Click to hide internal directories.