shiori/assets-generator.go
Radhi Fadlillah 2c23f98d0c Refactor code
2018-04-28 21:02:36 +07:00

23 lines
331 B
Go

// +build ignore
package main
import (
"log"
"net/http"
"github.com/shurcooL/vfsgen"
)
func main() {
err := vfsgen.Generate(http.Dir("view"), vfsgen.Options{
Filename: "cmd/serve/assets-prod.go",
PackageName: "serve",
BuildTags: "!dev",
VariableName: "assets",
})
if err != nil {
log.Fatalln(err)
}
}