diff options
Diffstat (limited to 'modules/public/main.go')
-rw-r--r-- | modules/public/main.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/public/main.go b/modules/public/main.go new file mode 100644 index 0000000000..707dbe2b22 --- /dev/null +++ b/modules/public/main.go @@ -0,0 +1,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) + } +} |