urfave-cli/flag-gen/assets_generate.go

24 lines
354 B
Go
Raw Normal View History

// +build ignore
package main
import (
"github.com/shurcooL/httpfs/union"
"github.com/shurcooL/vfsgen"
"log"
"net/http"
)
func main() {
2019-08-04 13:31:47 +00:00
fs := union.New(map[string]http.FileSystem{
"/templates": http.Dir("templates"),
"/source": http.Dir("source"),
})
err := vfsgen.Generate(fs, vfsgen.Options{})
if err != nil {
log.Fatal(err)
}
}