1 Star 0 Fork 0

walter / grpc_go_examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

https://grpc.io/docs/quickstart/go/

export GOPROXY=https://goproxy.cn

echo 'export GOPROXY=https://goproxy.cn' >> ~/.zshrc source ~/.zshrc $ go get -u google.golang.org/grpc $ go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

$ protoc -I my_service --go_out=plugins=grpc:my_service myService.proto

✘  ~/go/src/grpc_go_examples/my_service_server  go run main.go Server started... (port=:50051) query=Wall

~/go/src/grpc_go_examples/my_service_client  go run main.go [Response] name:"Alice Wall" age:20 country:JAPAN hobby:"tennis" name:"Bobby Wall" age:33 country:CANADA hobby:"music"

已存在的文件夹或 Git 仓库 cd existing_folder git init git remote add origin git@gitee.com:walter80/grpc_go_examples.git git add . git commit git push -u origin master

protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld

空文件

简介

grpc go教程 展开 收起
Go
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/walter80/grpc_go_examples.git
git@gitee.com:walter80/grpc_go_examples.git
walter80
grpc_go_examples
grpc_go_examples
master

搜索帮助