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