The Go Playground

Clone this repo:

Branches

  1. a6ad7bf playground: disable cgo when executing the vet tool by Yury Smolsky · 6 days ago master
  2. f759808 playground: allow CORS requests on /compile and /vet endpoints by Andrew Bonventre · 8 days ago
  3. a7e8e78 playground: refactor handleVet and handleCompile methods by Yury Smolsky · 10 weeks ago
  4. 0a3c79a Dockerfile: use x/tools containing the CL 107455 by Yury Smolsky · 10 weeks ago
  5. da85333 playground: add vet by Yury Smolsky · 4 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.