123456789101112131415161718192021222324252627 |
- description: "My personal backend/frontend project structure"
- files:
- - source: "gomain.go.boiler"
- target: "go/src/{{.projName|ToLower}}/cmd/{{.binary|ToLower}}/main.go"
- vars:
- - {name: "binary", default: "{{.projName}}"}
- - {name: "author"}
- - {name: "email"}
- - {name: "version"}
- - {
- name: "mainpkg",
- default: '{{.projName|ToLower}}/cmd/{{.binary|ToLower}}',
- question: "Main Package",
- }
- generators:
- gofile:
- description: "Creates a go file based on template"
- aliases:
- - ".go"
- files:
- - source: "gofile.go.boiler"
- target: "{{.curdir}}/{{.name}}"
- vars:
- - name: "package"
- default: "{{.projName}}"
- flag: "package, p"
- question: "package name of the new file"
|