Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new cite element with the given child nodes. Example: cite.New(text.Text("Nineteen Eighty-Four")) Renders: <cite>Nineteen Eighty-Four</cite>
func RawText ¶
func RawText(str string) *element
RawText Creates a new cite element with raw text content as unescaped HTML. Example: cite.RawText("<i>Nineteen Eighty-Four</i>") Renders: <cite><i>Nineteen Eighty-Four</i></cite>
func RawTextf ¶
RawTextf Creates a new cite element with formatted raw text content as unescaped HTML using text.RawTextf. Example: cite.RawTextf("Hello <em>%s</em>", "World") Renders: <cite>Hello <em>World</em></cite>
func Static ¶
func Static(str string) *element
Static Creates a new cite element with static text content. Example: cite.Static("Hello World") Renders: <cite>Hello World</cite>