feat(template): add ch-cross
This commit is contained in:
@@ -10,12 +10,19 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//go:embed template.html
|
||||
//go:embed assets/template.html
|
||||
var htmlTemplate string
|
||||
|
||||
//go:embed style.css
|
||||
//go:embed assets/style.css
|
||||
var style template.CSS
|
||||
|
||||
//go:embed assets/ch-cross.svg
|
||||
var chCross template.HTML
|
||||
|
||||
func (r Report) ChCross() template.HTML {
|
||||
return chCross
|
||||
}
|
||||
|
||||
func (r Report) ToHTML() string {
|
||||
tmpl := template.Must(
|
||||
template.New("report").Funcs(template.FuncMap{
|
||||
|
||||
Reference in New Issue
Block a user