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