Skip to content

Instantly share code, notes, and snippets.

@cc4i
Last active August 12, 2019 10:17
Show Gist options
  • Save cc4i/6fcf8a0ba258fbc799c6e7d1c789ed0c to your computer and use it in GitHub Desktop.
Save cc4i/6fcf8a0ba258fbc799c6e7d1c789ed0c to your computer and use it in GitHub Desktop.
Protocal buffers & gRPC : compile multiple protocal buffers files
protoc -I $SRC_DIR (find . -name "*.proto) --go_out=plugins=grpc:$SRC_DIR
//or
protoc -I $SRC_DIR $SRC_DIR/file-a.proto $SRC_DIR/file-b.proto --go_out=plugins=grpc:$SRC_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment