Documentation ¶
Index ¶
- func DecodeHTML(x string) string
- type Node
- func (n *Node) AddAttr(attr xml.Attr)
- func (n *Node) AddChild(child *Node)
- func (n *Node) Copy() *Node
- func (n *Node) FlatList(list *[]string, prefix string)
- func (n *Node) GetAllChildContentS() []string
- func (n *Node) GetAllChildNamesS() []string
- func (n *Node) GetAttr(name string) (xml.Attr, bool)
- func (n *Node) GetAttrValueS(name string) (string, bool)
- func (n *Node) GetChild(name []byte) *Node
- func (n *Node) GetChildByContent(content string) *Node
- func (n *Node) GetChildContent(name []byte) []byte
- func (n *Node) GetChildContentS(name string) string
- func (n *Node) GetChildS(name string) *Node
- func (n *Node) GetChildren() []*Node
- func (n *Node) GetContent() []byte
- func (n *Node) GetContentS() string
- func (n *Node) GetName() []byte
- func (n *Node) GetNameS() string
- func (n *Node) GetParent() *Node
- func (n *Node) GetXMLNameS() string
- func (n *Node) HasChild(name []byte) bool
- func (n *Node) HasChildS(name string) bool
- func (n *Node) Merge(subtemplate *Node, skipOverwrite []string)
- func (n *Node) NewAttrS(name, value string)
- func (n *Node) NewChild(name, content []byte) *Node
- func (n *Node) NewChildS(name, content string) *Node
- func (n *Node) PopChild(name []byte) *Node
- func (n *Node) PopChildS(name string) *Node
- func (n *Node) PreprocessTemplate()
- func (n *Node) Print(depth int) string
- func (n *Node) SearchChildren(path []string) []*Node
- func (n *Node) SearchContent(prefix []string, paths [][]string) ([]string, bool)
- func (n *Node) SetChildContentS(name, content string)
- func (n *Node) SetContent(content []byte)
- func (n *Node) SetContentS(content string)
- func (n *Node) SetName(name []byte)
- func (n *Node) SetNameS(name string)
- func (n *Node) SetXMLNameS(name string)
- func (n *Node) Union(source *Node)
- func (n *Node) UnmarshalXML(dec *xml.Decoder, root xml.StartElement) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeHTML ¶
Types ¶
type Node ¶
type Node struct { XMLName xml.Name Attrs []xml.Attr `xml:",any,attr"` Content []byte `xml:",innerxml"` Children []*Node `xml:",any"` // contains filtered or unexported fields }
func (*Node) GetAllChildContentS ¶
func (*Node) GetAllChildNamesS ¶
func (*Node) GetChildByContent ¶
GetChildByContent Compare child content
func (*Node) GetChildContent ¶
func (*Node) GetChildContentS ¶
func (*Node) GetChildren ¶
func (*Node) GetContent ¶
func (*Node) GetContentS ¶
func (*Node) GetXMLNameS ¶
func (*Node) Merge ¶
Merge method will merge the subtemplate into the receiver, modifying the receiver in-place. skipOverwrite is a readonly list of keys that will not be overwritten in the receiver.
func (*Node) PreprocessTemplate ¶
func (n *Node) PreprocessTemplate()
func (*Node) SearchChildren ¶
func (*Node) SearchContent ¶
func (*Node) SetChildContentS ¶
func (*Node) SetContent ¶
func (*Node) SetContentS ¶
func (*Node) SetXMLNameS ¶
func (*Node) UnmarshalXML ¶
Click to show internal directories.
Click to hide internal directories.