安装grpc
Go version
$ go version
Install gRPC
$ go get -u google.golang.org/grpc
Install Protocol Buffers v3
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ export PATH=$PATH:$GOPATH/bin
build the example
$ cd $GOPATH/src/google.golang.org/grpc/examples/helloworld
try it
$ go run greeter_server/main.go
$ go run greeter_client/main.go