2010-10-13 21:06:02 -06:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Goplay is a web interface for experimenting with Go code.
|
|
|
|
// It is similar to the Go Playground: http://golang.org/doc/play/
|
2012-10-30 14:38:01 -06:00
|
|
|
//
|
2012-02-06 10:10:49 -07:00
|
|
|
// To use goplay:
|
2010-10-13 21:06:02 -06:00
|
|
|
// $ cd $GOROOT/misc/goplay
|
2012-02-06 10:10:49 -07:00
|
|
|
// $ go run goplay.go
|
2010-10-13 21:06:02 -06:00
|
|
|
// and load http://localhost:3999/ in a web browser.
|
2012-10-30 14:38:01 -06:00
|
|
|
//
|
2010-10-13 21:06:02 -06:00
|
|
|
// You should see a Hello World program, which you can compile and run by
|
|
|
|
// pressing shift-enter. There is also a "compile-on-keypress" feature that can
|
|
|
|
// be enabled by checking a checkbox.
|
2012-10-30 14:38:01 -06:00
|
|
|
//
|
2010-10-13 21:06:02 -06:00
|
|
|
// WARNING! CUIDADO! ACHTUNG! ATTENZIONE!
|
|
|
|
// A note on security: anyone with access to the goplay web interface can run
|
|
|
|
// arbitrary code on your computer. Goplay is not a sandbox, and has no other
|
2012-10-30 14:38:01 -06:00
|
|
|
// security mechanisms. Do not deploy it in untrusted environments.
|
|
|
|
// By default, goplay listens only on localhost. This can be overridden with
|
2010-10-13 21:06:02 -06:00
|
|
|
// the -http parameter. Do so at your own risk.
|
|
|
|
package documentation
|