svg

package
v1.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SVGs contains discovered SVGs
	SVGs map[string]string
)

Functions

func Discover

func Discover() map[string]string

Discover returns a map of discovered SVG icons in the file system

func Init

func Init()

Init discovers SVGs and populates the `SVGs` variable

func RenderHTML added in v1.17.4

func RenderHTML(icon string, others ...interface{}) template.HTML

Render render icons - arguments icon name (string), size (int), class (string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL