Documentation ¶ Index ¶ func Init() error func Normalize(data []byte, size int) []byte func RenderHTML(icon string, others ...any) template.HTML Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init() error Init discovers SVG icons and populates the `svgIcons` variable func Normalize ¶ added in v1.21.0 func Normalize(data []byte, size int) []byte Normalize normalizes the SVG content: set default width/height, remove unnecessary tags/attributes It's designed to work with valid SVG content. For invalid SVG content, the returned content is not guaranteed. func RenderHTML ¶ added in v1.17.4 func RenderHTML(icon string, others ...any) template.HTML RenderHTML renders icons - arguments icon name (string), size (int), class (string) Types ¶ This section is empty. Source Files ¶ View all Source files processor.go svg.go Click to show internal directories. Click to hide internal directories.