xpath

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

README

match

支持 * 或则 ** 的匹配规则。使用了正则表达式自带的贪婪模式进行检索处理 详细使用方式可以参看test中样例处理

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecutablePath

func GetExecutablePath() string

Types

type Match

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

Match 构建模糊匹配缓存查找管理器

func NewMatch

func NewMatch(pathList []string, opts ...Option) *Match

NewMatch 构建模糊匹配缓存查找管理器

func (*Match) CanUseCache added in v0.1.17

func (m *Match) CanUseCache() bool

func (*Match) Match

func (m *Match) Match(path string, spls ...string) (match bool, pattern string)

Match Match

type Option added in v0.1.16

type Option func(*Match)

func WithCache added in v0.1.16

func WithCache(enable bool) Option

Jump to

Keyboard shortcuts

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