OS Version : MacOS
Go Version : 1.11 (with GoModule)
- If your os version is not macOS, you can download and replace the bin/protoc from https://github.com/google/protobuf/releases.
- If your go version is not 1.11, you can install gvm to checkout go to different version.
- Follow the steps below
$ export GO111MODULE
$ ./bin/protoc --go_out=plugins=grpc:. ./src/proto/*.proto
$ make- Exeucte Client-Server Program by following steps
// Execute server by
$ ./bin/grpc-server
// Execute client by
$ ./bin/grpc-client