Go Playground - The Go Programming Language


本站和网页 https://go.dev/play/p/Afckk_KK9E7 的作者无关,不对其内容负责。快照谨为网络故障时之索引,不代表被搜索网站的即时页面。

Go Playground - The Go Programming Language
Why Go arrow_drop_down
Case Studies
Common problems companies solve with Go
Use Cases
Stories about how and why companies use Go
Security
How Go can help keep you secure by default
Learn
Docs arrow_drop_down
Effective Go
Tips for writing clear, performant, and idiomatic Go code
Go User Manual
A complete introduction to building software with Go
Standard library
Reference documentation for Go's standard library
Release Notes
Learn what's new in each Go release
Packages
Community arrow_drop_down
Recorded Talks
Videos from prior events
Meetups
open_in_new
Meet other local Go developers
Conferences
open_in_new
Learn and network with Go developers from around the world
Go blog
The Go project's official blog.
Go project
Get help and stay informed from Go
Get connected
Why Go navigate_next
navigate_beforeWhy Go
Case Studies
Use Cases
Security
Learn
Docs navigate_next
navigate_beforeDocs
Effective Go
Go User Manual
Standard library
Release Notes
Packages
Community navigate_next
navigate_beforeCommunity
Recorded Talks
Meetups
open_in_new
Conferences
open_in_new
Go blog
Go project
Get connected
The Go Playground
Go 1.20
Go 1.19
Go dev branch
Run
Format
Share
Hello, World!
Conway's Game of Life
Fibonacci Closure
Peano Integers
Concurrent pi
Concurrent Prime Sieve
Peg Solitaire Solver
Tree Comparison
Clear Screen
HTTP Server
Display Image
Multiple Files
Sleep
Test Function
Generic index
Loading share...
Hello, 涓栫晫
About the Playground
The Go Playground is a web service that runs on
go.dev's servers.
The service receives a Go program, vets, compiles, links, and
runs the program inside a sandbox, then returns the output.
If the program contains tests or examples
and no main function, the service runs the tests.
Benchmarks will likely not be supported since the program runs in a sandboxed
environment 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 world
is 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 "Inside
the Go Playground" describes how the playground is implemented.
The source code is available at https://go.googlesource.com/playground.
The playground uses the latest 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 you
contact 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 to
security@golang.org.
Please include the URL and the reason for the request.
Why Go
Use Cases
Case Studies
Get Started
Playground
Tour
Stack Overflow
Help
Packages
Standard Library
About Go Packages
About
Download
Blog
Issue Tracker
Release Notes
Brand Guidelines
Code of Conduct
Connect
Twitter
GitHub
Slack
r/golang
Meetup
Golang Weekly
Copyright
Terms of Service
Privacy Policy
Report an Issue
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.
Okay