Documentation
¶
Index ¶
- type Exporter
- type Node
- func (node *Node) AddSibling(next *Node)
- func (node *Node) AppendAll(nodes []*Node)
- func (node *Node) AppendChild(child *Node)
- func (node *Node) Attr(name string) *Node
- func (node *Node) AttrBool(name string) bool
- func (node *Node) AttrString(name string) string
- func (node *Node) ClearContent()
- func (node *Node) CloneNode(deep bool) *Node
- func (node *Node) Contains(ref *Node) bool
- func (node *Node) Export(exporter *Exporter) string
- func (node *Node) Find(selector string) []*Node
- func (node *Node) FindOne(selector string) *Node
- func (node *Node) GetRoot() *Node
- func (node *Node) HasChildren() bool
- func (node *Node) IndexOf(ref *Node) int
- func (node *Node) InnerHTML() string
- func (node *Node) InnerText() string
- func (node *Node) InnerXML() string
- func (node *Node) InsertAfter(newNode *Node, refNode *Node)
- func (node *Node) InsertBefore(newNode *Node, refNode *Node)
- func (node *Node) NameWithPrefix() string
- func (node *Node) Remove()
- func (node *Node) RemoveAll(list []*Node)
- func (node *Node) RemoveChild(child *Node)
- func (node *Node) TrimAttrString(name string) string
- type NodeType
- type SelectType
- type XNode
- func (it *XNode) Ancestor(sel string)
- func (it *XNode) AncestorOrSelf(sel string)
- func (it *XNode) Attribute(sel string)
- func (it *XNode) Child(sel string)
- func (it *XNode) Descendant(sel string)
- func (it *XNode) DescendantOrSelf(sel string)
- func (it *XNode) Following(sel string)
- func (it *XNode) Namespace(sel string)
- func (it *XNode) Parent()
- func (it *XNode) Preceding(sel string)
- func (it *XNode) PrecedingSibling(sel string)
- func (it *XNode) Root()
- func (it *XNode) Self(sel string)
- type XNodeHandler
- type Xpath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Node ¶
type Node struct { ParentNode, FirstChild, LastChild, PrevSibling, NextSibling *Node Type NodeType Value string Name string NamespaceURI string Prefix string Attrs []*Node ChildNodes []*Node }
func (*Node) AddSibling ¶
func (*Node) AppendChild ¶
func (*Node) AttrString ¶
func (*Node) ClearContent ¶
func (node *Node) ClearContent()
func (*Node) HasChildren ¶
func (*Node) InsertAfter ¶
func (*Node) InsertBefore ¶
func (*Node) NameWithPrefix ¶
func (*Node) RemoveChild ¶
func (*Node) TrimAttrString ¶
type XNode ¶
type XNode struct { *Node // contains filtered or unexported fields }
func NewXpathNode ¶
func (*XNode) AncestorOrSelf ¶
func (*XNode) Descendant ¶
func (*XNode) DescendantOrSelf ¶
func (*XNode) PrecedingSibling ¶
type XNodeHandler ¶
type Xpath ¶
type Xpath struct {
// contains filtered or unexported fields
}
func (*Xpath) SelectFirst ¶
func (*Xpath) SelectLast ¶
Click to show internal directories.
Click to hide internal directories.