Documentation ¶
Index ¶
- func After(pivot, n *html.Node) error
- func Append(p, c *html.Node)
- func Before(pivot, n *html.Node) error
- func ChildNodes(n *html.Node) []*html.Node
- func Children(n *html.Node) []*html.Node
- func Clone(n *html.Node) *html.Node
- func CloneAll(n *html.Node) *html.Node
- func Count(n *html.Node) int
- func Create(text string) ([]*html.Node, error)
- func Empty(n *html.Node)
- func First(n *html.Node) *html.Node
- func HTML(n *html.Node) string
- func Html(n *html.Node, text ...string) string
- func Insert(position Position, pivot, n *html.Node) error
- func IsComment(n *html.Node) bool
- func IsDoctype(n *html.Node) bool
- func IsDocument(n *html.Node) bool
- func IsElement(n *html.Node) bool
- func IsError(n *html.Node) bool
- func IsText(n *html.Node) bool
- func Last(n *html.Node) *html.Node
- func LastDescendant(n *html.Node) *html.Node
- func Next(n *html.Node) *html.Node
- func NextAll(n *html.Node) []*html.Node
- func Parent(n *html.Node) *html.Node
- func Prepend(pivot, n *html.Node) error
- func Prev(n *html.Node) *html.Node
- func PrevAll(n *html.Node) []*html.Node
- func Remove(n *html.Node)
- func Replace(parentNode, newNode, oldNode *html.Node) *html.Node
- func Sibling(n *html.Node) []*html.Node
- func Text(n *html.Node, text ...string) string
- func Wrap(node, wrapper *html.Node) error
- func WrapAll(nodes []*html.Node, wrapper *html.Node) error
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Insert ¶
Insert <!-- beforebegin --> <p>
<!-- afterbegin --> childnodes <!-- beforeend -->
</p> <!-- afterend -->
func IsDocument ¶
func LastDescendant ¶
LastDescendant if FirstChild is nil returns given html.Node
Types ¶
Click to show internal directories.
Click to hide internal directories.