skeleton/assets/assets_generate.go

22 lines
347 B
Go
Raw Normal View History

2019-12-14 07:27:15 +01:00
// +build ignore
package main
import (
"log"
"bitmask.me/skeleton/assets"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(assets.Assets, vfsgen.Options{
PackageName: "assets",
BuildTags: "!dev",
VariableName: "Assets",
Filename: "./assets/assets_vfsdata.go",
})
if err != nil {
log.Fatalln(err)
}
}