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