aboutsummaryrefslogtreecommitdiffstats
path: root/modules/public/main.go
blob: 707dbe2b220af9ab89269e35e7160bc12ce2599a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// +build ignore

package main

import (
	"log"
	"net/http"

	"github.com/shurcooL/vfsgen"
)

func main() {
	var fsPublic http.FileSystem = http.Dir("../../public")
	err := vfsgen.Generate(fsPublic, vfsgen.Options{
		PackageName:  "public",
		BuildTags:    "bindata",
		VariableName: "Assets",
		Filename:     "bindata.go",
	})
	if err != nil {
		log.Fatal("%v", err)
	}
}