~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to misc/goplay/doc.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-04-20 17:36:48 UTC
  • Revision ID: james.westby@ubuntu.com-20110420173648-ifergoxyrm832trd
Tags: upstream-2011.03.07.1
Import upstream version 2011.03.07.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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, first build and install it:
 
9
//   $ cd $GOROOT/misc/goplay
 
10
//   $ gomake install
 
11
// Then, run it:
 
12
//   $ goplay
 
13
// and load http://localhost:3999/ in a web browser.
 
14
// 
 
15
// You should see a Hello World program, which you can compile and run by
 
16
// pressing shift-enter. There is also a "compile-on-keypress" feature that can
 
17
// be enabled by checking a checkbox.
 
18
// 
 
19
// WARNING! CUIDADO! ACHTUNG! ATTENZIONE!
 
20
// A note on security: anyone with access to the goplay web interface can run
 
21
// arbitrary code on your computer. Goplay is not a sandbox, and has no other
 
22
// security mechanisms. Do not deploy it in untrusted environments. 
 
23
// By default, goplay listens only on localhost. This can be overridden with 
 
24
// the -http parameter. Do so at your own risk.
 
25
package documentation