1 安装protoc
https://github.com/protocolbuffers/protobuf/releases/tag/v3.14.0
2 安装protoc-gen-go
go get -u github.com/golang/protobuf/protoc-gen-go
3 安装grpc
go get google.golang.org/grpc
protoc --go_out=plugins=grpc:. add.proto
启动服务端
go run main.go
启动客户端
go run client.go