goembed FS Fix

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

View file

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