Google App Engine with Go
App Engine is a Google service that facilitates the quick deployment of web applications. These applications have access to cloud storage and various other Google APIs. The general idea is that App Engine will scale easily with load and simplify any operations management associated with hosting an app. This recipe will show how to create and optionally deploy a basic App Engine application. This recipe won't get into the details of setting up a Google cloud account, setting up billing, or the specifics on cleaning up your instance. At a minimum, access to Google Cloud Datastore (https://cloud.google.com/datastore/docs/concepts/overview) is required for this recipe to work.
Getting ready
Configure your environment according to these steps:
- Download and install Go on your operating system from https://golang.org/doc/install and configure your
GOPATH
environment variable. - Open a terminal/console application.
- Navigate to your
GOPATH/src
and create a project directory, for...