Matcher is an interface that defines the methods to match HTML nodes against a compiled selector string. Cascadia's Selector implements this interface.
| 116 | // HTML nodes against a compiled selector string. Cascadia's |
| 117 | // Selector implements this interface. |
| 118 | type Matcher interface { |
| 119 | Match(*html.Node) bool |
| 120 | MatchAll(*html.Node) []*html.Node |
| 121 | Filter([]*html.Node) []*html.Node |
| 122 | } |
| 123 | |
| 124 | // Single compiles a selector string to a Matcher that stops after the first |
| 125 | // match is found. |
no outgoing calls
no test coverage detected
searching dependent graphs…