tour: deploy with App Engine Standard on Go 1.11

This change upgrades the deployment of tour to use the newer
Go 1.11 runtime. As part of that, the appengine build tag is
removed (it's no longer set by App Engine), and the GAE_ENV
environment variable is used to detect when tour is being run
in App Engine mode.

Set an environment variable in app.yaml to configure the
x/tools/godoc/golangorgenv package appropriately.

Factor out the static file handlers in local.go, but keep
static file handlers in app.yaml for improved latency across
global regions.

Updates golang/go#30486

Change-Id: Ia5bc88aab34fd07bf6ff0785da831180f509156f
Reviewed-by: Brad Fitzpatrick <>
5 files changed
tree: 1746bfdf2f2701f353f7f92eeb147b6e4a15de8c
  1. .gcloudignore
  7. TODO
  9. app.yaml
  10. appengine.go
  11. codereview.cfg
  12. content/
  13. fmt.go
  14. gotour/
  15. local.go
  16. pic/
  17. reader/
  18. solutions/
  19. static/
  20. template/
  21. tools/
  22. tour.go
  23. tree/
  24. wc/

Go Tour

A Tour of Go is an introduction to the Go programming language. Visit to start the tour.


To install the tour from source, first set up a workspace and then run:

$ go get

This will place a tour binary in your workspace's bin directory, which can be run offline.


Contributions should follow the same procedure as for the Go project:

To run the tour server locally: app.yaml

and then visit http://localhost:8080/ in your browser.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the tour is located at Prefix your issue with “tour:” in the subject line, so it is easy to find.


Unless otherwise noted, the go-tour source files are distributed under the BSD-style license found in the LICENSE file.