protocol buffer compilers setup - pogo420/grpc_learning GitHub Wiki

Pointers:

  • In proto files mention, go_options=path/to/proto/files/root
  • When the compiled go files are generated it will use it as package name.
  • Its specific to go, we can use the same files in other languages without any issues.
  • syntax of compilation : protoc --go_out=. --go_opt=paths=source_relative path/to/proto/file
  • It will generate the go files in proto directory.
  • Make sure we compile the proto files whenever we do some changes in proto files.