commit | dfcfa704bc7ea1e269589fe047bc9e0083a35b81 | [log] [tgz] |
---|---|---|
author | Carlos C <uldericofilho@gmail.com> | Mon Jun 01 22:42:17 2015 +0200 |
committer | Andrew Gerrand <adg@golang.org> | Fri Jun 05 22:42:17 2015 +0000 |
tree | 1480f037ffef1cf7e984f34e7e69f13a7be4e099 | |
parent | c81e550ea6345d3dba3e51f69cc2c23cf8eefe35 [diff] |
playground: redesign of top menu bar and add embed functionality Make playground's design closer to www.golang.org and add embed functionality when sharing code snippet. It hides share button and embed checkbox, if inside of iframe. Change-Id: Ie3de27abc99a3543b7a34b36274c8e98a18d0585 Reviewed-on: https://go-review.googlesource.com/10580 Reviewed-by: Andrew Gerrand <adg@golang.org>
This subrepository holds the source for various packages and tools that support the Go playground: https://play.golang.org/
# build the sandbox image docker build -t sandbox sandbox/
# 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.
boot2docker shellinit gcloud preview app setup-managed-vms gcloud preview app run app/ sandbox/ gcloud preview app deploy app/ sandbox/
# sandbox docker push golang/playground-sandbox gcloud preview container replicationcontrollers create --config sandbox/kubernetes/controller.yaml gcloud preview container services create --config sandbox/kubernetes/service.yaml
# sandbox docker push golang/playground-sandbox gcloud compute instances create playground-sandbox-vm --image container-vm --metadata-from-file google-container-manifest=sandbox/container-vm.yaml