move static folder to web/static
This commit is contained in:
parent
5cb52b55da
commit
fa2f39fa2c
6 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -20,7 +20,7 @@ import (
|
||||||
//go:embed web/template
|
//go:embed web/template
|
||||||
var templateFS embed.FS
|
var templateFS embed.FS
|
||||||
|
|
||||||
//go:embed static
|
//go:embed web/static
|
||||||
var staticFS embed.FS
|
var staticFS embed.FS
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -72,7 +72,7 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
// Set up statics
|
// Set up statics
|
||||||
statics, err := fs.Sub(staticFS, "static")
|
statics, err := fs.Sub(staticFS, "web/static")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue