(id ID)
| 95 | type pattern string |
| 96 | |
| 97 | func (p pattern) Match(id ID) bool { |
| 98 | pathParts := split(id.String()) |
| 99 | patternParts := split(string(p)) |
| 100 | |
| 101 | return match(patternParts, pathParts) |
| 102 | } |
| 103 | |
| 104 | func (p pattern) Includes(other Pattern) bool { |
| 105 | otherParts := split(other.String()) |