happy/data/generate.go

22 lines
305 B
Go
Raw Normal View History

2019-10-28 14:35:14 +00:00
// +build ignore
package main
import (
"log"
"github.com/chrissexton/happy/data"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(data.Assets, vfsgen.Options{
PackageName: "data",
BuildTags: "!dev",
VariableName: "Assets",
})
if err != nil {
log.Fatalln(err)
}
}