Matcher is an interface that defines a method for matching strings against a specific pattern. It can be implemented by different types of patterns, such as glob patterns, regular expressions, or base directory patterns.
| 18 | // specific pattern. It can be implemented by different types of patterns, such |
| 19 | // as glob patterns, regular expressions, or base directory patterns. |
| 20 | type Matcher interface { |
| 21 | // Matches checks if the given string matches the pattern. |
| 22 | Matches(string) bool |
| 23 | // String returns the string representation of the pattern. |
| 24 | String() string |
| 25 | } |
| 26 | |
| 27 | // ParseNamePattern parses a pattern string and returns a Matcher. |
| 28 | // It recognizes glob patterns (with "glob:" prefix), regular expressions (with |
no outgoing calls
no test coverage detected