Match reports whether name matches the shell file name pattern.
The pattern syntax is:
pattern: { term } term: '*' matches any sequence of non-Separator characters '?' matches any single non-Separator character '[' [ '^' ] { character-range } ']' character class (mustbenon-empty) cmatchescharacterc (c != '*', '?', '\\', '[') '\\' cmatchescharacterc
character-range: cmatchescharacterc (c != '\\', '-', ']') '\\' cmatchescharacterc lo '-' himatchescharactercforlo <=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.
On Windows, escaping is disabled. Instead, '\' is treated as
path separator.
Match reports whether name matches the shell file name pattern. The pattern syntax is:
Match requires pattern to match all of name, not just a substring. The only possible returned error is [ErrBadPattern], when pattern is malformed.
On Windows, escaping is disabled. Instead, '\' is treated as path separator.