README ¶ match 支持 * 或则 ** 的匹配规则。使用了正则表达式自带的贪婪模式进行检索处理 详细使用方式可以参看test中样例处理 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GetExecutablePath() string type Match func NewMatch(pathList []string, opts ...Option) *Match func (m *Match) CanUseCache() bool func (m *Match) Match(path string, spls ...string) (match bool, pattern string) type Option func WithCache(enable bool) Option 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 Source Files ¶ View all Source files exec.go match.go options.go Click to show internal directories. Click to hide internal directories.