justlog/api/assets.go

23 lines
315 B
Go
Raw Normal View History

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