This repository provides a simple example of Twirp code generation for Go/Ruby/JS using prototool.
Clone it:
$ git clone https://github.com/bruce/twirp_prototool_example
Make sure you have a recent version of Go (see .tool-versions
).
Run the bootstrap task to install dependencies:
$ make bootstrap
Lint protobuf files in proto/
:
$ make lint
Format protobuf files in proto/
:
$ make format
Generate Go/Ruby/JS code in gen/
from protobuf files in proto/
$ make generate
Clean out generated files from gen/
:
$ make clean
Remove project dependencies:
$ make sanitize