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" gonanoid "github.com/matoous/go-nanoid/v2"
) )
func main() { //go:embed views/*
var viewsfs embed.FS
//go:embed views/* func main() {
var viewsfs embed.FS
engine := html.NewFileSystem(http.FS(viewsfs), ".html") engine := html.NewFileSystem(http.FS(viewsfs), ".html")