glob

package
v16.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, name string, separators ...rune) (bool, error)

Match returns whether the name matches the glob pattern, also considering one or several optionnal separator. An error is only returned if the pattern is invalid.

Types

type Glob added in v16.15.0

type Glob interface {
	Match(name string) bool
}

func Compile added in v16.15.0

func Compile(pattern string, separators ...rune) (Glob, error)

Jump to

Keyboard shortcuts

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