Your program is compiled and executed on the server against a real Go toolchain, then the standard output and any errors are sent back to your browser. That means the full Go standard library is available.
Write a complete program with package main and a func main() entry point, just like a normal Go file. Whatever main() prints to standard output shows up in the Output panel.
Execution is time-limited to keep the service responsive, and network access is restricted. Long-running or blocking programs may be stopped and reported as timed out.
Yes. Click Share to copy a URL that encodes your current program, so anyone who opens the link sees the same code.
Chat opens an AI assistant embedded in the playground. It can explain Go concepts, debug compile and runtime errors, and write code directly into the editor, then run it to confirm it works.