Documentation ¶
Overview ¶
Package elements provides a data structure for representing HTML elements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { Attributes map[string]string Children []*Element HasEndTag bool TagName string Text string }
func (*Element) AddAttributeValue ¶
AddAttributeValue appends value to the named attribute’s value, separated by a space. If the attribute does not exist, it is created first. This method is chainable.
func (*Element) SetAttributeValue ¶
SetAttributeValue replaces the value of the named attribute with the provided one. If the attribute does not exist, it is created first. This method is chainable.
Click to show internal directories.
Click to hide internal directories.