Skip to content

Latest commit

 

History

History
 
 

example

Proteus examples

This example shows how to use proteus for a typical use case. Imagine you have your Go models and you need to generate some .proto files to match that models. It has some entities like the ones you could have on a database.

To generate the .proto you can use the proteus binary:

proteus proto -p github.com/davidp94/proteus/example \
              -f $GOPATH/src/github.com/davidp94/proteus/example/protos \
              --verbose

The generated file will be in:

$GOPATH/src/github.com/davidp94/proteus/example/protos/github.com/proteus/example/generated.proto

You can also use make regenerate