准備依賴
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