From 83b90e41999d30e4abb46f6bf0f1c3359cfd4d04 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 3 Jun 2019 05:43:47 +0800 Subject: Use vfsgen instead of go-bindata (#7080) * use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen --- modules/options/main.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/options/main.go (limited to 'modules/options/main.go') diff --git a/modules/options/main.go b/modules/options/main.go new file mode 100644 index 0000000000..0bc6c04e24 --- /dev/null +++ b/modules/options/main.go @@ -0,0 +1,23 @@ +// +build ignore + +package main + +import ( + "log" + "net/http" + + "github.com/shurcooL/vfsgen" +) + +func main() { + var fsTemplates http.FileSystem = http.Dir("../../options") + err := vfsgen.Generate(fsTemplates, vfsgen.Options{ + PackageName: "options", + BuildTags: "bindata", + VariableName: "Assets", + Filename: "bindata.go", + }) + if err != nil { + log.Fatal("%v", err) + } +} -- cgit v1.2.3