package path
Import Path
github.com/carapace-sh/carapace/third_party/github.com/drone/envsubst/path (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
match.go
Package-Level Functions (only one)
Match reports whether name matches the shell file name pattern.
The pattern syntax is:
pattern:
{ term }
term:
'*' matches any sequence of non-/ characters
'?' matches any single non-/ character
'[' [ '^' ] { character-range } ']'
character class (must be non-empty)
c matches character c (c != '*', '?', '\\', '[')
'\\' c matches character c
character-range:
c matches character c (c != '\\', '-', ']')
'\\' c matches character c
lo '-' hi matches character c for lo <= c <= hi
Match requires pattern to match all of name, not just a substring.
The only possible returned error is ErrBadPattern, when pattern
is malformed.
Package-Level Variables (only one)
ErrBadPattern indicates a globbing pattern was malformed.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |