Getting ready

Configure your environment according to these steps:

  1. Download and install Go 1.11.1 or greater on your operating system from https://golang.org/doc/install.
  2. Download the Google Cloud SDK from https://cloud.google.com/appengine/docs/flexible/go/quickstart.
  3. Create an app that allows you to perform datastore access and record the app name. For this recipe, we'll use go-cookbook.
  4.  Install the gcloud components install app-engine-go Go app engine component.
  5. Open Terminal or console application and create and navigate to a project directory such as ~/projects/go-programming-cookbookAll the code we will cover in this recipe will be run and modified from this directory.
  6. Clone the latest code into ~/projects/go-programming-cookbook-original. Here, you have the option of working from that directory rather than typing in the examples manually:
$ git clone git@github.com:PacktPublishing/Go-Programming-Cookbook-Second-Edition.git go-programming-cookbook-original