Free

Go playground

A Linux machine with the Go toolchain.

1 machine
  • 60-minute sessions
  • Start again any time
  • Wiped when you finish

What you get

  • The full Go toolchain
  • gopls, and delve for debugging
  • VS Code in your browser with the Go extension
  • Root access on the machine

Things to try

  • go mod init example.com/hello

    Start a new module

  • go run .

    Run the program

  • go test ./...

    Run every test

  • go vet ./...

    Look for common mistakes

  • dlv debug

    Step through the code with delve

  • go build -o hello .

    Build a binary

About this playground

The Go playground gives you a Linux machine with the Go toolchain, gopls and delve, and VS Code in your browser with the Go extension. Create a module, write and run tests, step through code with delve and build a binary. You have root access, and the machine is deleted when the session ends.

Frequently asked questions

Is there an online Go playground with a real terminal?

Yes. With a free account you open a machine with the Go toolchain and VS Code in your browser, not a page that runs a single file. Sessions last 60 minutes and you can start another at once.

Can I debug my code?

Yes. delve is installed and the Go extension in VS Code uses it, with gopls for completion.

Can I use third-party packages?

Yes. go mod works as usual, so you can add dependencies to your module.

Is my code saved?

No. The machine is deleted when the session ends. Push your work to a Git repository before the time runs out.