gRPCの学習用リポジトリ。
- Golang 1.11+
- The setting of GOPATH has been completed
- install protobuf
$ brew install protobuf
- install gRPC
$ go get -u google.golang.org/grpc
- install protoc-gen-go
$ go get -u github.com/golang/protobuf/protoc-gen-go
- compile helloworld
$ protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld
- compile book
$ protoc -I proto/book/ proto/book/book.proto --go_out=plugins=grpc:proto/book
- run server
$ go run greeter_server/main.go
- run client
$ go run greeter_client/main.go
- run server
$ go run server/book/main.go
- run client
$ go run client/book/main.go