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