Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 852 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 852 Bytes

CoG : Code Generator

A minimalist go tool to generate code from templates leveraging on the amazing go template library

Prerequisites

Get the tool's binary

Prebuilt binary

You can refer to the project's GitHub release page.

Using Go

go get -u -v github.com/filariow/cog

Run the example

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