Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new pre element with the given child nodes Example: pre.New(text.Text("Code")) Renders: <pre>Code</pre>
func RawText ¶
func RawText(content string) *element
RawText Creates a new pre element with raw text content as unescaped HTML Example: pre.RawText("<code>var x = 1;</code>") Renders: <pre><code>var x = 1;</code></pre>
func RawTextf ¶
RawTextf Creates a new pre element with formatted raw text content as unescaped HTML Example: pre.RawTextf("<code>%s</code>", "x := 1") Renders: <pre><code>x := 1</code></pre>
func Static ¶
func Static(content string) *element
Static Creates a new pre element with static text content Example: pre.Static("func main() {}") Renders: <pre>func main() {}</pre>
Types ¶
Click to show internal directories.
Click to hide internal directories.