wildcard

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match added in v0.9.6

func Match(pattern, name string) bool

Match finds whether the text matches/satisfies the pattern string. considers a file system path as a flat name space. Copied from https://github.com/minio/minio/blob/release/pkg/wildcard/match.go#L22

Types

type Matcher

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

func NewMatcher

func NewMatcher() *Matcher

func (*Matcher) AddPattern

func (m *Matcher) AddPattern(pt string, replace string) error

func (*Matcher) MatchReplace

func (m *Matcher) MatchReplace(s string) (string, bool)

Jump to

Keyboard shortcuts

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