Windows10 安装grpc-go 详细步骤

2021-01-24 15:15

阅读:391

标签:准备   dba   com   golang   prot   shu   org   tps   doc   

准备依赖

git clone https://github.com/grpc/grpc-go.git $env:GOPATH\src\google.golang.org\grpc

git clone https://github.com/golang/net.git $env:GOPATH\src\golang.org\x\net

git clone https://github.com/golang/text.git $env:GOPATH\src\golang.org\x\text 

go get -u github.com/golang/protobuf

git clone https://github.com/google/go-genproto.git $env:GOPATH\src\google.golang.org\genproto

测试HelloWorld

打开server

$env:GOPATH\src\github.com\grpc\grpc-go\examples\helloworld\greeter_server
go run main.go

打开client

$env:GOPATH\src\github.com\grpc\grpc-go\examples\helloworld\greeter_client
go run main.go

参考链接

https://www.jianshu.com/p/dba4c7a6d608

http://grpc.mydoc.io/?v=10467&t=58008

https://github.com/grpc/grpc-go#FAQ

Windows10 安装grpc-go 详细步骤

标签:准备   dba   com   golang   prot   shu   org   tps   doc   

原文地址:https://www.cnblogs.com/roastpiglet/p/12045169.html


评论


亲,登录后才可以留言!