-
Go plugins:
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- update path
-
Protocol Buffer Compiler version 3
- follow instructions on https://grpc.io/docs/protoc-installation/ or https://github.com/protocolbuffers/protobuf/releases
$ go run greeter_server/main.go
$ go run greeter_client/main.go
- update helloworld/helloworld.proto file
- run
$ protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative helloworld/helloworld.proto
- implement your changes on server and client programs