Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new q element with optional child nodes. Example: q.New(text.Text("To be or not to be")) Renders: <q>To be or not to be</q>
func RawText ¶
func RawText(content string) *element
RawText Creates a new q element with raw text content as unescaped HTML. Example: q.RawText("<em>Important</em> quote") Renders: <q><em>Important</em> quote</q>
func RawTextf ¶
RawTextf Creates a new q element with formatted raw text content as unescaped HTML. Example: q.RawTextf("<strong>%s</strong>", "Quote") Renders: <q><strong>Quote</strong></q>
func Static ¶
func Static(content string) *element
Static Creates a new q element with static text content. Example: q.Static("Quote text") Renders: <q>Quote text</q>
Types ¶
Click to show internal directories.
Click to hide internal directories.