goembed FS Fix
This commit is contained in:
parent
4e0aa64d93
commit
a99d08b6b5
1 changed files with 3 additions and 3 deletions
4
main.go
4
main.go
|
@ -14,11 +14,11 @@ import (
|
|||
gonanoid "github.com/matoous/go-nanoid/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
//go:embed views/*
|
||||
var viewsfs embed.FS
|
||||
|
||||
func main() {
|
||||
|
||||
engine := html.NewFileSystem(http.FS(viewsfs), ".html")
|
||||
|
||||
app := fiber.New(fiber.Config{
|
||||
|
|
Loading…
Reference in a new issue