-
Notifications
You must be signed in to change notification settings - Fork 1
Protogen file
Philip Vieira edited this page Dec 19, 2018
·
2 revisions
The .protogen file defines how to generate code for your current repository, it should be placed where you intend to run your project commands (ideally at the root of your project). A protogen file can look something like this.
source github.com/zeeraw/protogen-protos
output ./vendor
language go {
plugin grpc
path import
}
generate services/games v1.0.1
generate services/foobar v3.0.0
If you want to create a .protogen file for your project, you can run the init command with the protogen tool. And it will automatically generate one.
$ protogen init