patternmatcher

package
v0.12.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnbalancedPattern    = errors.New("unbalanced pattern")
	ErrNoGlobPatternDefined = errors.New("no glob pattern defined")
)
View Source
var ErrNoRegexPatternDefined = errors.New("no glob pattern defined")
View Source
var ErrUnsupportedPatternMatcher = errors.New("unsupported pattern matcher")

Functions

This section is empty.

Types

type PatternMatcher

type PatternMatcher interface {
	Match(value string) bool
}

func NewPatternMatcher

func NewPatternMatcher(typ, pattern string) (PatternMatcher, error)

Jump to

Keyboard shortcuts

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