A minimalist go tool to generate code from templates leveraging on the amazing go template library
You can refer to the project's GitHub release page.
go get -u -v github.com/filariow/cog
Clone the repository in a local directory
git clone https://github.com/filariow/cog.git
cd cog
To build the application use
make build
Only on Linux, you can install the binary by using
make install
Run the following command to generate the simplego
example project from templates
cog ./examples/simplego
You can run the generated code using the following commands
cd ./out/simplego
go run main.go