You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
385 B

  1. // +build ignore
  2. package main
  3. import (
  4. "log"
  5. "net/http"
  6. "github.com/shurcooL/vfsgen"
  7. )
  8. func main() {
  9. var fsTemplates http.FileSystem = http.Dir("../../templates")
  10. err := vfsgen.Generate(fsTemplates, vfsgen.Options{
  11. PackageName: "templates",
  12. BuildTags: "bindata",
  13. VariableName: "Assets",
  14. Filename: "bindata.go",
  15. })
  16. if err != nil {
  17. log.Fatal("%v", err)
  18. }
  19. }