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