Documentation ¶
Index ¶
- type Node
- func (n Node) AddClass(class string) Node
- func (n Node) Append(html interface{}) Node
- func (n Node) Clear() Node
- func (n Node) FirstChild() Node
- func (n Node) HTML(html interface{}) Node
- func (n Node) InsertAfter(html interface{}) Node
- func (n Node) InsertBefore(html interface{}) Node
- func (n Node) LastChild() Node
- func (n Node) NextSibling() Node
- func (n Node) Parent() Node
- func (n Node) Prepend(html interface{}) Node
- func (n Node) PrevSibling() Node
- func (n Node) Remove() Node
- func (n Node) Replace(html interface{}) Node
- func (n Node) ReplaceAttr(attr map[string]string) Node
- func (n Node) RmAttr(attrs ...string) Node
- func (n Node) RmClass(class string) Node
- func (n Node) RmStyles(styles ...string) Node
- func (n Node) Root() Node
- func (n Node) S(selector interface{}) Selector
- func (n Node) SetAttr(attr map[string]string) Node
- func (n Node) SetStyles(styles map[string]string) Node
- func (n Node) Text(text string) Node
- func (n Node) Tx() Tx
- type Selector
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node represents one or more HTML nodes
func (Node) FirstChild ¶
FirstChild matches the first child of matched elements
func (Node) HTML ¶
HTML sets the inner HTML of matched elements. Accepts either a string or an HTMLSource as argument.
func (Node) InsertAfter ¶
InsertAfter inserts content after matched elements
func (Node) InsertBefore ¶
InsertBefore inserts content before matched elements
func (Node) NextSibling ¶
NextSibling matches the previous sibling of matched elements
func (Node) PrevSibling ¶
PrevSibling matches the previous sibling of matched elements
func (Node) ReplaceAttr ¶
ReplaceAttr replaces the attributes of matching elements
Click to show internal directories.
Click to hide internal directories.