Versions in this module Expand all Collapse all v0 v0.1.0 Dec 9, 2023 Changes in this version + type Exporter struct + DropCDataSection bool + DropComment bool + DropDirective bool + DropDocumentType bool + DropEmpty bool + DropProcessingInstruction bool + IncludeSelf bool + func (et *Exporter) ApplyOn(node *Node) string + type Node struct + Attrs []*Node + ChildNodes []*Node + FirstChild *Node + LastChild *Node + Name string + NamespaceURI string + NextSibling *Node + ParentNode *Node + Prefix string + PrevSibling *Node + Type NodeType + Value string + func Parse(reader io.Reader) (*Node, error) + 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 uint + const AttributeNode + const CDataSectionNode + const CommentNode + const DirectiveNode + const DocumentNode + const DocumentTypeNode + const ElementNode + const ProcessingInstructionNode + const TextNode + type SelectType uint + const SelectAll + const SelectFirst + type XNode struct + func NewXpathNode(node *Node) *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 func(node *Node) bool + type Xpath struct + func NewXpath(text string) (*Xpath, error) + func (it *Xpath) SelectAll(node *Node) []*Node + func (it *Xpath) SelectFirst(node *Node) *Node + func (it *Xpath) SelectLast(node *Node) *Node