2019-08-04 04:58:08 +00:00
|
|
|
// +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{})
|
2019-08-04 04:58:08 +00:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|