switch assets to embed

This commit is contained in:
Nazar Kanaev 2021-02-26 12:33:35 +00:00
parent a3146926b1
commit 121101de9d
8 changed files with 79 additions and 178 deletions

15
assets/assetsfs.go Normal file
View file

@ -0,0 +1,15 @@
// +build release
package assets
import "embed"
//go:embed *.html
//go:embed graphicarts
//go:embed javascripts
//go:embed stylesheets
var embedded embed.FS
func init() {
FS.embedded = &embedded
}