justlog/api/assets.go
2020-11-08 16:43:30 +01:00

22 lines
314 B
Go

// +build ignore
package main
import (
"log"
"net/http"
"github.com/shurcooL/vfsgen"
)
var assets http.FileSystem = http.Dir("web/build")
func main() {
err := vfsgen.Generate(assets, vfsgen.Options{
Filename: "api/assets_vfsgen.go",
PackageName: "api",
})
if err != nil {
log.Fatalln(err)
}
}