zglob

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

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

Go to latest
Published: May 31, 2018 License: MIT Imports: 8 Imported by: 0

README

go-zglob

Build Status

zglob

Usage

matches, err := zglob.Glob(`./foo/b*/**/z*.txt`)

Installation

$ go get github.com/mattn/go-zglob

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(pattern string) ([]string, error)
func GlobFollowSymlinks(pattern string) ([]string, error)

func Match

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

Types

type Pattern

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

func New

func New(pattern string) (*Pattern, error)

func (*Pattern) Match

func (z *Pattern) Match(name string) bool

Directories

Path Synopsis
cmd
zglob command

Jump to

Keyboard shortcuts

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