Project to provide a alternative for Cookiecutter for define project generation.
curl -LO https://github.com/sergsoares/ggen/releases/download/v0.3.0/ggen
Create a new folder and use:
./ggen -init
# It will create ggen.yml and a template folder with simple example.
Then you can use Go templates Tutorial for create scaffolds for your project.
- Simple cli with go templates for create one file.
- Add ggen init to generate basic configuration (air inspired)
- Implement safe manipulation of paths.
- Add parameters or config file.
- Add tests
- Pre-Build
- Strict mode to avoid "" appear inside templates
- Validate output based on extension (JSON/YAML/HCL)
- Verify if folder is empty in init
- Open templates from URL