1
$ go version
1
$ go get -u google.golang.org/grpc

Install Protocol Buffers v3

  • download pre-compiled binaries for your platform(protoc-<version>-<platform>.zip) from here: https://github.com/google/protobuf/releases
  • Unzip this file.
  • Update the environment variable PATH to include the path to the protoc binary file.
1
$ go get -u github.com/golang/protobuf/protoc-gen-go
1
$ export PATH=$PATH:$GOPATH/bin

Build the example

1
$ cd $GOPATH/src/google.golang.org/grpc/examples/helloworld