tstor/torrent/assets_generate.go

31 lines
512 B
Go
Raw Normal View History

// +build ignore
package main
import (
"log"
"github.com/ajnavarro/distribyted"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(distribyted.Assets, vfsgen.Options{
BuildTags: "release",
VariableName: "Assets",
PackageName: "distribyted",
})
if err != nil {
log.Fatalln(err)
}
err := vfsgen.Generate(distribyted.Assets, vfsgen.Options{
BuildTags: "release",
VariableName: "Templates",
PackageName: "distribyted",
})
if err != nil {
log.Fatalln(err)
}
}