Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new sub element with the given child nodes. Example: sub.New(text.Text("2")) Renders: <sub>2</sub>
func RawText ¶
func RawText(content string) *element
RawText Creates a new sub element with raw text content as unescaped HTML. Example: sub.RawText("<em>2</em>") Renders: <sub><em>2</em></sub>
func RawTextf ¶
RawTextf Creates a new sub element with formatted raw text content as unescaped HTML using text.RawTextf. Example: sub.RawTextf("<em>%d</em>", 2) Renders: <sub><em>2</em></sub>
func Static ¶
func Static(content string) *element
Static Creates a new sub element with static text content. Example: sub.Static("Hello World") Renders: <sub>Hello World</sub>
Types ¶
Click to show internal directories.
Click to hide internal directories.