glob

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPatternValid

func IsPatternValid(pattern string) bool

If IsPatternValid(pattern) is true, filepath.Match(pattern, name) will not return an error. See also https://go-review.googlesource.com/c/go/+/143477

Types

type Glob

type Glob string

func Parse

func Parse(pattern string) (Glob, error)

func (Glob) Dir

func (g Glob) Dir() string

func (Glob) Match

func (g Glob) Match(path string) bool

Jump to

Keyboard shortcuts

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