Setting up gRPC

The example code for our tutorial is in grpc/grpc-go/examples/route_guide. To download the example, clone the grpc-go repository by running the following command:

go get google.golang.org/grpc

Then change your current directory to grpc-go/examples/route_guide:

cd $GOPATH/src/google.golang.org/grpc/examples/route_guide

You also should have the relevant tools installed to generate the server and client interface code - if you don’t already, follow the setup instructions in the Go quick start guide.

Install Golang

Installing using OS package manager You might use your package manager to install Go or install manually from the official release binaries. Either way should be easy. Because the go tool is able to download code from remote repositories, it is often useful to have installed clients for the various supported version control systems. At the time of this writing, they are documented as: Bazaar, Git, Mercurial and Subversion. They are not mandatory requirements, you might go a long way with just having git installed, and installing others later as required. [Read More]