[mirror] The Go Playground
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 31 commits behind golang:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS
Dockerfile
LICENSE
Makefile
PATENTS
README.md
app.yaml
cache.go
client.go
codereview.cfg
edit.go
edit.html
enable-fake-time.patch
fake_fs.lst
fmt.go
logger.go
main.go
play.go
play_test.go
sandbox.go
server.go
server_test.go
share.go
store.go

README.md

playground

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

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

Building

# build the image
docker build -t playground .

Running

# run the image
docker run --rm -d -p 8080:8080 --name playground-container playground
# run go some code
cat /path/to/code.go | go run client.go | curl --data @- localhost:8080/compile

Mount local GOPATH/src

# Replace //d/projects/go/src with your own $GOPATH/src
docker run -v //d/projects/go/src:/go/src --rm -d -p 8080:8080 --name playground-container playground