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