-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posts/go/grpc/2018-09-23-client-and-server/ #157
Comments
go get -u github.com/golang/protobuf/protoc-gen-go 报错: 解决方案:go get -u google.golang.org/protobuf/cmd/protoc-gen-go@latest |
运行 protoc --go_out=. *.proto 报错: 解决方案: |
运行protoc --go-grpc_out=. *.proto 报错: 解决方案:go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest |
应该运行 protoc --go_out=. --go-grpc=. *.proto |
随着时间的推移,安装更新的protocolbuffers会出现一些问题: wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-all-21.12.zip 安装 protoc-gen-go 安装 protoc-gen-go-grpc 生成 proto文件 server.go 报错:it has a non-exported method and is defined in a different package 解决方案: type SearchService struct { |
「连载二」gRPC Client and Server
https://eddycjy.com/posts/go/grpc/2018-09-23-client-and-server/
The text was updated successfully, but these errors were encountered: