fix html template embed

This commit is contained in:
Antoni Sawicki 2022-11-30 02:00:53 -08:00
parent c8e391274a
commit 9b76c045d6

4
wrp.go
View File

@ -53,7 +53,7 @@ var (
delay time.Duration delay time.Duration
) )
// go:embed *.html //go:embed *.html
var fs embed.FS var fs embed.FS
type geom struct { type geom struct {
@ -471,7 +471,7 @@ func tmpl(t string) string {
return string(tmpl) return string(tmpl)
builtin: builtin:
fhs, err := fs.Open("/wrp.html") fhs, err := fs.Open("wrp.html")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }