goembed FS Fix
This commit is contained in:
parent
4e0aa64d93
commit
a99d08b6b5
1 changed files with 3 additions and 3 deletions
6
main.go
6
main.go
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue