pathpattern

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern string, target string) bool

func MatchAny

func MatchAny(patterns []string, target string) bool

func Validate

func Validate(pattern string, context string) error

Types

type Pattern added in v0.1.158

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

func Compile added in v0.1.158

func Compile(pattern string, context string) (Pattern, error)

func CompileAll added in v0.1.158

func CompileAll(patterns []string, context string) ([]Pattern, error)

func (Pattern) Match added in v0.1.158

func (pattern Pattern) Match(target string) bool

func (Pattern) MatchAdmitted added in v0.1.158

func (pattern Pattern) MatchAdmitted(target string) bool

func (Pattern) String added in v0.1.158

func (pattern Pattern) String() string

Jump to

Keyboard shortcuts

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