Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new dd element with child nodes. Example: dd.New(text.Text("A large feline inhabiting Bodmin Moor.")) Renders: <dd>A large feline inhabiting Bodmin Moor.</dd>
func RawText ¶
func RawText(str string) *element
RawText Creates a new dd element with raw text content as unescaped HTML. Example: dd.RawText("<b>A large feline</b> inhabiting Bodmin Moor.") Renders: <dd><b>A large feline</b> inhabiting Bodmin Moor.</dd>
func RawTextf ¶
RawTextf Creates a new dd element with formatted raw text content as unescaped HTML using text.RawTextf. Example: dd.RawTextf("Hello <em>%s</em>", "World") Renders: <dd>Hello <em>World</em></dd>
func Static ¶
func Static(str string) *element
Static Creates a new dd element with static text content. Example: dd.Static("Hello World") Renders: <dd>Hello World</dd>