match

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPattern

type IPattern interface {
	//
	// Match
	//  @Description: 匹配模式
	//  @param input 源字符
	//  @param pattern 模式数组
	//  @return bool 是否匹配
	//  @return []string 匹配结果按权重大小倒序
	//
	Match(input string, pattern []string) (bool, []string)
}

type Match

type Match struct {
	PrefixMatch IPattern
	SuffixMatch IPattern
}

func NewMatch

func NewMatch() *Match

Jump to

Keyboard shortcuts

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