The Go Playground

Clone this repo:


  1. c4ae04c playground: parameterize GO_VERSION in Dockerfile by Alexander Rakoczy · 4 days ago master
  2. 742871f Makefile: adjust the test rule to be more useful by Brad Fitzpatrick · 5 weeks ago
  3. e1479bc playground: format go.mod files; fix paths in formatting errors by Dmitri Shuralyov · 5 weeks ago
  4. a7b4d4c playground: support multiple input files in txtar format by Brad Fitzpatrick · 5 weeks ago
  5. 1b5b098 playground: enable third-party imports by Brad Fitzpatrick · 5 weeks ago


This subrepository holds the source for the Go playground:


# build the image
docker build -t playground .


docker run --name=play --rm -d -p 8080:8080 playground
# run some Go code
cat /path/to/code.go | go run client.go | curl -s --upload-file - localhost:8080/compile


Building the playground Docker container takes more than the default 10 minute time limit of cloud build, so increase its timeout first (note, app/cloud_build_timeout is a global configuration value):

gcloud config set app/cloud_build_timeout 1200  # 20 mins

Alternatively, to avoid Cloud Build and build locally:

make docker
docker tag playground:latest
docker push
gcloud --project=golang-org app deploy app.yaml


gcloud --project=golang-org app deploy app.yaml


To submit changes to this repository, see