goembed FS Fix

This commit is contained in:
Phil 2021-12-07 19:13:06 +01:00
parent 4e0aa64d93
commit a99d08b6b5

View file

@ -14,10 +14,10 @@ import (
gonanoid "github.com/matoous/go-nanoid/v2"
)
func main() {
//go:embed views/*
var viewsfs embed.FS
//go:embed views/*
var viewsfs embed.FS
func main() {
engine := html.NewFileSystem(http.FS(viewsfs), ".html")