Documentation ¶
Index ¶
- type Node
- func (node *Node) AppendChild(child *Node)
- func (node *Node) Children() (children []*Node)
- func (node *Node) ElementChildren() (children []*Node)
- func (node *Node) FindByAtom(atoms ...atom.Atom) (nodes []*Node)
- func (node *Node) GetAllText() string
- func (node *Node) GetAttr(key string) string
- func (node *Node) Next() *Node
- func (node *Node) NextByAtom(atom atom.Atom) *Node
- func (node *Node) NextElement() *Node
- func (node *Node) Prev() *Node
- func (node *Node) PrevByAtom(atom atom.Atom) *Node
- func (node *Node) PrevElement() *Node
- func (node *Node) RawString() string
- func (node *Node) RemoveAttr(key string)
- func (node *Node) RemoveChild(child *Node)
- func (node *Node) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
func ParseBytes ¶
func ParseString ¶
func (*Node) AppendChild ¶
func (*Node) ElementChildren ¶
ElementChildren returns all child nodes that are elements.
func (*Node) FindByAtom ¶
FindByAtom finds element nodes by their atom across multiple levels.
func (*Node) GetAllText ¶
GetAllText gets all text without any tags.
func (*Node) NextByAtom ¶
NextByAtom finds the next sibling element by its atom.
func (*Node) NextElement ¶
func (*Node) PrevByAtom ¶
PrevByAtom finds the previous sibling element by its atom.
func (*Node) PrevElement ¶
func (*Node) RemoveAttr ¶
func (*Node) RemoveChild ¶
Click to show internal directories.
Click to hide internal directories.