summaryrefslogtreecommitdiffstats
path: root/modules/templates/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/main.go')
-rw-r--r--modules/templates/main.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/templates/main.go b/modules/templates/main.go
new file mode 100644
index 0000000000..4460f58cbf
--- /dev/null
+++ b/modules/templates/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("../../templates")
+ err := vfsgen.Generate(fsTemplates, vfsgen.Options{
+ PackageName: "templates",
+ BuildTags: "bindata",
+ VariableName: "Assets",
+ Filename: "bindata.go",
+ })
+ if err != nil {
+ log.Fatal("%v", err)
+ }
+}