package wildcard
import "github.com/moby/buildkit/util/wildcard"
Index ¶
Functions ¶
func Wildcard2Regexp ¶
Wildcard2Regexp translates a wildcard string to a regexp string.
Types ¶
type Match ¶
type Match struct { Submatches []string // 0: the entire query, 1: the first submatch, 2: the second submatch, ... // contains filtered or unexported fields }
Match is a matched result.
func (*Match) Format ¶
Format formats submatch strings like "$1", "$2".
func (*Match) String ¶
String implements fmt.Stringer.
type Wildcard ¶
type Wildcard struct {
// contains filtered or unexported fields
}
Wildcard is a wildcard matcher object.
func New ¶
New returns a wildcard object for a string that contains "*" symbols.
func (*Wildcard) Match ¶
Match returns a non-nil Match on match.
func (*Wildcard) String ¶
String implements fmt.Stringer.
Source Files ¶
- Version
- v0.21.0 (latest)
- Published
- Apr 11, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.