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.


See also