glob

package module
v0.0.0-...-f41a225 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 7 Imported by: 1

README

glob

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMatch   = errors.New("match")
	ErrPattern = errors.New("mismatch")
)

Functions

func Debug

func Debug(m Matcher)

func Match

func Match(str, pattern string) error

Types

type Glob

type Glob struct {
	// contains filtered or unexported fields
}

func New

func New(pattern string, dirs ...string) (*Glob, error)

func (*Glob) Glob

func (g *Glob) Glob() string

type Matcher

type Matcher interface {
	fmt.Stringer

	Match(string) (Matcher, error)
	// contains filtered or unexported methods
}

func Compile

func Compile(pattern string) (Matcher, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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