pattern_matcher

package
v0.0.0-...-56951d6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*PatternMatcher)

Option is the type for functional options.

func Replace

func Replace(list []string, is_include bool) Option

func WithReplaceExcludes

func WithReplaceExcludes(list []string) Option

func WithReplaceIncludes

func WithReplaceIncludes(list []string) Option

type PatternMatcher

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

func New

func New(options ...Option) *PatternMatcher

func (*PatternMatcher) ExcludePatterns

func (pm *PatternMatcher) ExcludePatterns() []glob.Glob

func (*PatternMatcher) IncludePatterns

func (pm *PatternMatcher) IncludePatterns() []glob.Glob

func (*PatternMatcher) Match

func (pm *PatternMatcher) Match(value string) bool

Jump to

Keyboard shortcuts

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