glob

package
v0.0.0-...-0108d89 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadPattern = errors.New("syntax error in pattern")

ErrBadPattern indicates a globbing pattern was malformed.

Functions

func IsGlob

func IsGlob(pattern string) bool

func Match

func Match(pattern, name string) (matched bool, err error)

Types

type Glob

type Glob struct {
	Pattern string
	Desc    bool
	Limits  []string
	IsGlob  bool
}

func Parse

func Parse(pattern string, desc bool) *Glob

Jump to

Keyboard shortcuts

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