github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/misc/goplay/doc.go (about) 1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Goplay is a web interface for experimenting with Go code. 6 // It is similar to the Go Playground: http://golang.org/doc/play/ 7 // 8 // To use goplay: 9 // $ cd $GOROOT/misc/goplay 10 // $ go run goplay.go 11 // and load http://localhost:3999/ in a web browser. 12 // 13 // You should see a Hello World program, which you can compile and run by 14 // pressing shift-enter. There is also a "compile-on-keypress" feature that can 15 // be enabled by checking a checkbox. 16 // 17 // WARNING! CUIDADO! ACHTUNG! ATTENZIONE! 18 // A note on security: anyone with access to the goplay web interface can run 19 // arbitrary code on your computer. Goplay is not a sandbox, and has no other 20 // security mechanisms. Do not deploy it in untrusted environments. 21 // By default, goplay listens only on localhost. This can be overridden with 22 // the -http parameter. Do so at your own risk. 23 package main