Documentation ¶
Index ¶
- type Node
- func (n *Node) ChildNodes() []*Node
- func (n *Node) Children() []*Node
- func (n *Node) FindMany(cb func(n *Node) bool) []*Node
- func (n *Node) FindOne(cb func(n *Node) bool) *Node
- func (n *Node) ForEach(cb func(n *Node))
- func (n *Node) GetAttr(key string) []string
- func (n *Node) GetElementByClass(class string) *Node
- func (n *Node) GetElementById(id string) *Node
- func (n *Node) GetElementByTagName(name string) *Node
- func (n *Node) HasAttr(key, value string) bool
- func (n *Node) HasClass(class string) bool
- func (n *Node) QuerySelector(selector string) *Node
- func (n *Node) QuerySelectorAll(selector string) []*Node
- func (n *Node) RemoveChild(other *Node)
- func (n *Node) Render() (string, error)
- func (n *Node) Text() string
- func (n *Node) Traverse(cb func(n *Node))
- func (n *Node) TrimmedText() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
func NewTextNode ¶
func (*Node) ChildNodes ¶
func (*Node) GetElementByClass ¶
func (*Node) GetElementById ¶
func (*Node) GetElementByTagName ¶
func (*Node) QuerySelector ¶
func (*Node) QuerySelectorAll ¶
func (*Node) RemoveChild ¶
func (*Node) TrimmedText ¶
Click to show internal directories.
Click to hide internal directories.