Versions in this module Expand all Collapse all v0 v0.0.3 Jan 4, 2022 v0.0.2 Jan 4, 2022 Changes in this version + const AdjacentTo + const AncestorOf + const AttrName + const AttrValue + const BINOMIAL + const CLASS + const COEFFICIENT + const COMMA + const CONTAINS + const ContainsClass + const DashPrefixed + const ELEMENT + const EQUALS + const EVEN + const EndsWith + const FirstChild + const FirstOfType + const GLOBAL + const ID + const LBRACKET + const LOCAL + const LPAREN + const LastChild + const LastOfType + const MINUS + const MatchOp + const N + const NOT + const NthChild + const NthOfType + const NumLexemes + const ODD + const OPERATOR + const OnlyChild + const OnlyOfType + const PLUS + const PRECEDES + const ParentOf + const PseudoClass + const RBRACKET + const RPAREN + const SIGNED + const SPACES + const StartsWith + const TYPE + const UNIVERSAL + const UNSIGNED + var DisableSelectorCache = false + var SelectorCacheMaxEntries = 100 + func CSS2Xpath(css string, scope Scope) string + func Find(top *html.Node, expr string) []*html.Node + func FindOne(top *html.Node, expr string) *html.Node + func InnerText(n *html.Node) string + func LoadDoc(path string) (*html.Node, error) + func LoadURL(url string) (*html.Node, error) + func OutputHTML(n *html.Node, self bool) string + func Parse(r io.Reader) (*html.Node, error) + func Query(top *html.Node, expr string) (*html.Node, error) + func QueryAll(top *html.Node, expr string) ([]*html.Node, error) + func QuerySelector(top *html.Node, selector *xpath.Expr) *html.Node + func QuerySelectorAll(top *html.Node, selector *xpath.Expr) []*html.Node + func SelectAttr(n *html.Node, name string) (val string) + type Lexeme int + type NodeNavigator struct + func CreateXPathNavigator(top *html.Node) *NodeNavigator + func (*NodeNavigator) Prefix() string + func (h *NodeNavigator) Copy() xpath.NodeNavigator + func (h *NodeNavigator) Current() *html.Node + func (h *NodeNavigator) LocalName() string + func (h *NodeNavigator) MoveTo(other xpath.NodeNavigator) bool + func (h *NodeNavigator) MoveToChild() bool + func (h *NodeNavigator) MoveToFirst() bool + func (h *NodeNavigator) MoveToNext() bool + func (h *NodeNavigator) MoveToNextAttribute() bool + func (h *NodeNavigator) MoveToParent() bool + func (h *NodeNavigator) MoveToPrevious() bool + func (h *NodeNavigator) MoveToRoot() + func (h *NodeNavigator) NodeType() xpath.NodeType + func (h *NodeNavigator) String() string + func (h *NodeNavigator) Value() string + type Scope int + type Selector struct + IsRoot bool + Node *html.Node + func NewSelector(content []byte) *Selector + func (s *Selector) Attr(name string) string + func (s *Selector) CSS(css string) Selectors + func (s *Selector) HTML() string + func (s *Selector) InnerHTML() string + func (s *Selector) Text() string + func (s *Selector) Xpath(path string) Selectors + type Selectors []*Selector + func (ss Selectors) Attrs(name string) []string + func (ss Selectors) HTMLs() []string + func (ss Selectors) InnerHTMLs() []string + func (ss Selectors) Texts() []string