Documentation ¶
Index ¶
- func GetAttr(n *html.Node, name string) *html.Attribute
- func NodeHasClass(n *html.Node, c string) bool
- func NodeHasID(n *html.Node, id string) bool
- func Query(root *html.Node, selector Selector) []*html.Node
- type Selector
- func HasAll(first Selector, selectors ...Selector) Selector
- func HasAny(first Selector, selectors ...Selector) Selector
- func HasClass(class string) Selector
- func HasDirectParent(selector Selector) Selector
- func HasID(id string) Selector
- func HasParent(selector Selector) Selector
- func IsElementOf(name string) Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.