Documentation
¶
Index ¶
- func New(nodes ...node.Node) *element
- func Option(value string, str string) *element
- func RawText(content string) *element
- func RawTextf(format string, args ...any) *element
- func Static(content string) *element
- func Text(content string) *element
- func Textf(format string, args ...any) *element
- type Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new option element with optional child nodes Example: option.New() Renders: <option></option>
func Option ¶
Option Creates a new option element with a value attribute and HTML-encoded text content Example: option.Option("us", "United States") Renders: <option value="us">United States</option>
func RawText ¶
func RawText(content string) *element
RawText Creates a new option element with raw text content
func RawTextf ¶
RawTextf Creates a new option element with formatted raw text content as unescaped HTML
Types ¶
Click to show internal directories.
Click to hide internal directories.