This commit is contained in:
parent
9df635ebe9
commit
7b1e505e95
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.env
|
.env
|
||||||
.idea/
|
.idea/
|
||||||
tmp/
|
tmp/
|
||||||
|
kuvia
|
2
main.go
2
main.go
|
@ -123,7 +123,7 @@ func main() {
|
||||||
FileSystem: http.FS(public),
|
FileSystem: http.FS(public),
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
templateFS, err := template.EmbedFS(templates, "templates/", []string{".tmpl"})
|
templateFS, err := template.EmbedFS(templates, "templates", []string{".tmpl"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err).Msg("Cant creat EmbedFS for templates")
|
log.Fatal().Err(err).Msg("Cant creat EmbedFS for templates")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue