MCPcopy Create free account
hub / github.com/antchfx/htmlquery / Find

Function Find

query.go:31–37  ·  view source on GitHub ↗

Find is like QueryAll but Will panics if the expression `expr` cannot be parsed. See `QueryAll()` function.

(top *html.Node, expr string)

Source from the content-addressed store, hash-verified

29//
30// See `QueryAll()` function.
31func 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.

Callers

nothing calls this directly

Calls 1

QueryAllFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…