16 lines
366 B
Go
Raw Normal View History

2017-06-16 16:12:18 +00:00
package utils
import (
2019-08-30 07:04:28 +00:00
"fmt"
2017-06-16 16:12:18 +00:00
)
2019-08-30 07:04:28 +00:00
// Icon shows an icon that has a margin-right attribute.
2017-06-16 16:12:18 +00:00
func Icon(name string) string {
2019-08-30 07:04:28 +00:00
return fmt.Sprintf("<svg-icon name='%s' class='padded-icon'></svg-icon>", name)
2017-06-16 16:12:18 +00:00
}
2019-08-30 07:04:28 +00:00
// RawIcon shows the raw icon without any additional margin.
2017-06-16 16:12:18 +00:00
func RawIcon(name string) string {
2019-08-30 07:04:28 +00:00
return fmt.Sprintf("<svg-icon name='%s'></svg-icon>", name)
2017-06-16 16:12:18 +00:00
}