Matches checks if any of the matchers match the given string.
(str string)
| 62 | |
| 63 | // Matches checks if any of the matchers match the given string. |
| 64 | func (m Matchers) Matches(str string) bool { |
| 65 | for _, matcher := range m { |
| 66 | if matcher.Matches(str) { |
| 67 | return true |
| 68 | } |
| 69 | } |
| 70 | return false |
| 71 | } |
| 72 | |
| 73 | // String returns a string representation of all matchers. |
| 74 | func (m Matchers) String() string { |