Documentation ¶
Index ¶
- Variables
- func Replace(n1, n2 Node)
- func TextContent(root Node) string
- func Visit(root Node, handler func(Node, func()))
- type Attribute
- type Container
- type Element
- func (this *Element) Append(node Node)
- func (this *Element) Clone() Node
- func (this *Element) Export(w io.Writer)
- func (this *Element) Get(name string) (string, bool)
- func (this *Element) Insert(pos int, node Node)
- func (this *Element) IsSelfClosing() bool
- func (this *Element) Parent() Node
- func (this *Element) Set(name, value string)
- func (this *Element) SetParent(parent Node)
- func (this *Element) String() string
- type Fragment
- func (this *Fragment) Append(n Node)
- func (this *Fragment) Clone() Node
- func (this *Fragment) Export(w io.Writer)
- func (this *Fragment) Get(name string) (string, bool)
- func (this *Fragment) Insert(pos int, node Node)
- func (this *Fragment) Parent() Node
- func (this *Fragment) Set(name, value string)
- func (this *Fragment) SetParent(parent Node)
- func (this *Fragment) String() string
- type Html
- type Node
- type Text
- func (this *Text) Append(n Node)
- func (this *Text) Children() []Node
- func (this *Text) Clone() Node
- func (this *Text) Export(w io.Writer)
- func (this *Text) Get(name string) (string, bool)
- func (this *Text) Insert(pos int, node Node)
- func (this *Text) Parent() Node
- func (this *Text) Remove(n Node) bool
- func (this *Text) Set(name, value string)
- func (this *Text) SetParent(parent Node)
- func (this *Text) String() string
- type Visitor
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func TextContent ¶
Types ¶
type Element ¶
func (*Element) IsSelfClosing ¶
Click to show internal directories.
Click to hide internal directories.