Movatterモバイル変換


[0]ホーム

URL:


The Go Playground

Press Esc to move out of the editor.

About the Playground

The Go Playground is a web service that runs ongo.dev's servers.The service receives a Go program,vets, compiles, links, andruns the program inside a sandbox, then returns the output.

If the program containstests or examplesand no main function, the service runs the tests.Benchmarks will likely not be supported since the program runs in a sandboxedenvironment with limited resources.

There are limitations to the programs that can be run in the playground:

  • The playground can use most of the standard library, with some exceptions.The only communication a playground program has to the outside worldis by writing to standard output and standard error.
  • In the playground the time begins at 2009-11-10 23:00:00 UTC(determining the significance of this date is an exercise for the reader).This makes it easier to cache programs by giving them deterministic output.
  • There are also limits on execution time and on CPU and memory usage.

The article "Insidethe Go Playground" describes how the playground is implemented.The source code is available athttps://go.googlesource.com/playground.

The playground uses thelatest stable release of Go.

The playground service is used by more than just the official Go project(Go by Example is one other instance)and we are happy for you to use it on your own site.All we ask is that youcontact us first (note this is a public mailing list),that you use a unique user agent in your requests (so we can identify you),and that your service is of benefit to the Go community.

Any requests for content removal should be directed tosecurity@golang.org.Please include the URL and the reason for the request.

go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp