Find is like QueryAll but Will panics if the expression `expr` cannot be parsed. See `QueryAll()` function.
(top *html.Node, expr string)
| 29 | // |
| 30 | // See `QueryAll()` function. |
| 31 | func Find(top *html.Node, expr string) []*html.Node { |
| 32 | nodes, err := QueryAll(top, expr) |
| 33 | if err != nil { |
| 34 | panic(err) |
| 35 | } |
| 36 | return nodes |
| 37 | } |
| 38 | |
| 39 | // FindOne is like Query but will panics if the expression `expr` cannot be parsed. |
| 40 | // See `Query()` function. |
nothing calls this directly
no test coverage detected
searching dependent graphs…