shiori/assets-generator.go

24 lines
353 B
Go
Raw Normal View History

2019-05-27 18:01:53 +08:00
// +build ignore
package main
import (
"log"
"net/http"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(http.Dir("internal/view"), vfsgen.Options{
Filename: "internal/webserver/assets-prod.go",
PackageName: "webserver",
BuildTags: "!dev",
VariableName: "assets",
})
if err != nil {
log.Fatalln(err)
}
}