Windows10 安裝grpc-go 詳細步驟


准備依賴

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM