The Go Playground

Clone this repo:

Branches

  1. e07747d playground: prevent caching memory-related runtime errors by Katie Hockman · 5 weeks ago master
  2. 0757b4e playground: serve 404 for non-existent pages by Dmitri Shuralyov · 6 weeks ago
  3. 06ce2e1 playground: update to 1.10.3 by Andrew Bonventre · 10 weeks ago
  4. a6ad7bf playground: disable cgo when executing the vet tool by Yury Smolsky · 3 months ago
  5. f759808 playground: allow CORS requests on /compile and /vet endpoints by Andrew Bonventre · 3 months ago

playground

This subrepository holds the source for the Go playground: https://play.golang.org/

Building

# build the image
docker build -t playground .

Running

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

Deployment

gcloud --project=golang-org --account=person@example.com app deploy app.yaml

Contributing

To submit changes to this repository, see https://golang.org/doc/contribute.html.