Documentation
¶
Index ¶
- func Audio(data string, nodes ...node.Node) *element
- func Flash(data string, nodes ...node.Node) *element
- func New(nodes ...node.Node) *element
- func PDF(data string, nodes ...node.Node) *element
- func RawText(content string) *element
- func RawTextf(format string, args ...any) *element
- func Static(content string) *element
- func Text(content string) *element
- func Textf(format string, args ...any) *element
- func Video(data string, nodes ...node.Node) *element
- type Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Audio ¶
Audio Creates an object element for audio content Example: object.Audio("/audio.mp3") Renders: <object data="/audio.mp3" type="audio/mpeg"></object>
func Flash ¶
Flash Creates an object element for Flash content (legacy) Example: object.Flash("/animation.swf") Renders: <object data="/animation.swf" type="application/x-shockwave-flash"></object>
func New ¶
New Creates a new object element with optional child nodes Example: object.New() Renders: <object></object>
func PDF ¶
PDF Creates an object element for PDF documents Example: object.PDF("/document.pdf") Renders: <object data="/document.pdf" type="application/pdf"></object>
func RawText ¶
func RawText(content string) *element
RawText Creates a new object element with raw text content as fallback
func RawTextf ¶
RawTextf Creates a new object element with formatted raw text content as fallback (unescaped HTML)
func Static ¶
func Static(content string) *element
Static Creates a new object element with static text content
func Text ¶
func Text(content string) *element
Text Creates a new object element with text content as fallback