golang-standards/project-layout

/api/proto to store protobuf definitions

alexrolopez opened this issue · 1 comments

Hello we are starting a new project in go that has its API defined as protobuf. Every place I read about protobuf seems to imply that the *.proto files always live in /proto folder (directly in the root of the project).

However this guide, in https://github.com/golang-standards/project-layout#api, says that /api is a good idea for "protocol definition files" as well. I tend to agree, conceptually, these are the API for us as well. However, I would like to see some more references to this or examples to projects that use this if possible, as I didn't really found anything other than here. Thanks!

kcq commented

@alexrolopez good idea to add protobuf examples