Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new svg element with optional child nodes. Example: svg.New() Renders: <svg></svg>
func RawText ¶
func RawText(content string) *element
RawText Creates a new svg element with raw text content as unescaped HTML. Example: svg.RawText("<text>SVG</text> content") Renders: <svg><text>SVG</text> content</svg>
func RawTextf ¶
RawTextf Creates a new svg element with formatted raw text content as unescaped HTML using text.RawTextf. Example: svg.RawTextf("<text>%s</text> content", "SVG") Renders: <svg><text>SVG</text> content</svg>
func Static ¶
func Static(content string) *element
Static Creates a new svg element with static text content. Example: svg.Static("Hello World") Renders: <svg>Hello World</svg>
Types ¶
Click to show internal directories.
Click to hide internal directories.