Use go:embed for statics (#92)
This commit is contained in:
parent
ddda39b22a
commit
1d769673ca
7 changed files with 13 additions and 76 deletions
build_tools/assets_generate
|
@ -1,20 +0,0 @@
|
|||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/distribyted/distribyted"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/shurcooL/vfsgen"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := vfsgen.Generate(distribyted.HttpFS, vfsgen.Options{
|
||||
BuildTags: "release",
|
||||
VariableName: "HttpFS",
|
||||
PackageName: "distribyted",
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("problem generating static files")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue