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