Pattern is a pattern in a Host declaration. Patterns are read-only values; create a new one with NewPattern().
| 431 | // Pattern is a pattern in a Host declaration. Patterns are read-only values; |
| 432 | // create a new one with NewPattern(). |
| 433 | type Pattern struct { |
| 434 | str string // Its appearance in the file, not the value that gets compiled. |
| 435 | regex *regexp.Regexp |
| 436 | not bool // True if this is a negated match |
| 437 | } |
| 438 | |
| 439 | // String prints the string representation of the pattern. |
| 440 | func (p Pattern) String() string { |
nothing calls this directly
no outgoing calls
no test coverage detected