commit | e08a6e0686921c5b54593cdb6b74709dc4c30a9f | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <dmitshur@golang.org> | Tue Nov 13 15:40:55 2018 -0500 |
committer | Dmitri Shuralyov <dmitshur@golang.org> | Tue Nov 13 21:09:26 2018 +0000 |
tree | 47a84abe8b7ab60bec58f86cf02766ba95f507fb | |
parent | 22a239636ddbf367ea8e330959da51de9761c669 [diff] |
playground: update snippet to tell version The previous snippet was created almost 4 years ago in CL 2308. Update to a more modern snippet (created today) for the following reasons: • Apply gofmt (previous one was missing a newline at EOF). • It uses the current ID generation scheme, making it possible to re-create the same snippet in another playground instance. Change-Id: I50157f9a8d313f3c826d4289c91c42049ac5bd0d Reviewed-on: https://go-review.googlesource.com/c/149341 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This subrepository holds the source for the Go playground: https://play.golang.org/
# 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
gcloud --project=golang-org --account=person@example.com app deploy app.yaml
To submit changes to this repository, see https://golang.org/doc/contribute.html.