Documentation ¶
Overview ¶
Copyright 2022 Hal Canary Use of this program is governed by the file LICENSE.
Index ¶
- type Attr
- type Node
- func (node *Node) AddAttribute(k, v string)
- func (node *Node) Append(children ...*Node) *Node
- func (root *Node) ExtractText() string
- func (node *Node) FindAllMatchingNodes(tag string) []*Node
- func (node *Node) FindOneMatchingNode(tag string) *Node
- func (node *Node) FindOneMatchingNode2(tag, attributeKey, attributeValue string) *Node
- func (node *Node) GetAttribute(key string) string
- func (node *Node) GetFirstChild() *Node
- func (node *Node) GetNextSibling() *Node
- func (n *Node) GetParent() *Node
- func (n *Node) InsertBefore(v, o *Node)
- func (node *Node) Remove() *Node
- func (root *Node) RenderHTML(w io.Writer) error
- func (root *Node) RenderHTMLExperimental(w io.Writer) error
- func (root *Node) RenderXHTMLDoc(w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Alias for golang.org/x/net/html.Node.
func (*Node) AddAttribute ¶
func (*Node) ExtractText ¶
Extract and combine all Text Nodes under given node.
func (*Node) FindAllMatchingNodes ¶
func (*Node) FindOneMatchingNode ¶
func (*Node) FindOneMatchingNode2 ¶
func (*Node) GetAttribute ¶
Find the matching attributes, ignoring namespace.
func (*Node) GetFirstChild ¶
func (*Node) GetNextSibling ¶
func (*Node) InsertBefore ¶
func (*Node) RenderHTMLExperimental ¶ added in v0.3.0
Generates HTML5 doc.
Click to show internal directories.
Click to hide internal directories.