urfave-cli/flag-gen/assets_generate.go
Ajitem Sahasrabuddhe 8547458f1d
remove zero mod fs
2019-08-04 19:01:47 +05:30

24 lines
354 B
Go

// +build ignore
package main
import (
"github.com/shurcooL/httpfs/union"
"github.com/shurcooL/vfsgen"
"log"
"net/http"
)
func main() {
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)
}
}