app: add play.golang.org app

This once lived at https://code.google.com/p/go-playground/ in a
Mercurial repository.

Change-Id: I3b30db983770e47ba9fe190fb5a600d026546db7
12 files changed
tree: d1b37c0eeab93141ef5ae45915315bf681ac3ecc
  1. app/
  2. sandbox/
  3. AUTHORS
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
README.md

playground

This subrepository holds the source for various packages and tools that support the Go playground: https://play.golang.org/

building

# build the sandbox image
docker build -t sandbox sandbox/

running

# run the sandbox
docker run -d -p 8080:8080 sandbox
# get docker host ip, try boot2docker fallback on localhost.
DOCKER_HOST_IP=$(boot2docker ip || echo localhost)
# run go some code
cat /path/to/code.go | go run ./sandbox/client.go | curl --data @- $DOCKER_HOST_IP:8080/compile

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