matcher

package
v0.0.0-...-8877296 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marcher

type Marcher interface {
	Match(str string) bool
}

字符串匹配器

type RegexMatcher

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

正则表达式匹配器

func NewRegexMatcher

func NewRegexMatcher(regexs []string) *RegexMatcher

func (*RegexMatcher) Match

func (r *RegexMatcher) Match(str string) bool

Jump to

Keyboard shortcuts

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