config.yml 738 B

123456789101112131415161718192021222324252627
  1. description: "My personal backend/frontend project structure"
  2. files:
  3. - source: "gomain.go.boiler"
  4. target: "go/src/{{.projName|ToLower}}/cmd/{{.binary|ToLower}}/main.go"
  5. vars:
  6. - {name: "binary", default: "{{.projName}}"}
  7. - {name: "author"}
  8. - {name: "email"}
  9. - {name: "version"}
  10. - {
  11. name: "mainpkg",
  12. default: '{{.projName|ToLower}}/cmd/{{.binary|ToLower}}',
  13. question: "Main Package",
  14. }
  15. generators:
  16. gofile:
  17. description: "Creates a go file based on template"
  18. aliases:
  19. - ".go"
  20. files:
  21. - source: "gofile.go.boiler"
  22. target: "{{.curdir}}/{{.name}}"
  23. vars:
  24. - name: "package"
  25. default: "{{.projName}}"
  26. flag: "package, p"
  27. question: "package name of the new file"