mirror of
https://github.com/golang/go
synced 2024-11-18 05:04:47 -07:00
3ee87d02b0
Also: - faster code for example extraction - simplify handling of command documentation: all "main" packages are treated as commands - various minor cleanups along the way For commands written in Go, any doc.go file containing documentation must now be part of package main (rather then package documentation), otherwise the documentation won't show up in godoc (it will still build, though). For commands written in C, documentation may still be in doc.go files defining package documentation, but the recommended way is to explicitly ignore those files with a +build ignore constraint to define package main. Fixes #4806. R=adg, rsc, dave, bradfitz CC=golang-dev https://golang.org/cl/7333046
24 lines
1019 B
Go
24 lines
1019 B
Go
// 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/
|
|
//
|
|
// To use goplay:
|
|
// $ cd $GOROOT/misc/goplay
|
|
// $ go run goplay.go
|
|
// and load http://localhost:3999/ in a web browser.
|
|
//
|
|
// 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.
|
|
//
|
|
// 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
|
|
// security mechanisms. Do not deploy it in untrusted environments.
|
|
// By default, goplay listens only on localhost. This can be overridden with
|
|
// the -http parameter. Do so at your own risk.
|
|
package main
|