Skip to main content
CodeLab logoCodeLab

[ LANGUAGE — GO 1.23 ]

Run Go online. No install.

Run Go online. Experiment with goroutines, CLIs and backend snippets instantly.

Sample — copy into the compiler

package main

import "fmt"

func main() {
    var name string
    fmt.Print("Your name: ")
    fmt.Scanln(&name)
    fmt.Printf("Hello, %s!\n", name)
}

1. Open the Go runtime

Go to the compiler and select Go. Your code persists per language.

2. Paste and add input

Copy the sample or type your own. Fill stdin if the program reads input.

3. Run and share

Press Run in the editor, then copy the page URL to share your exact state.

Run Go now

Go FAQ

Do I need to install Go to use this?

No. The Go 1.23 runtime runs in your browser via CodeLab's embedded editor. Open the compiler, pick Go, and press Run.

Is running Go online free?

Yes. The CodeLab Playground is free with no account. Optional paid plans add privacy and larger limits — see the pricing page.

How do I handle input in Go?

Use the stdin panel inside the editor for piped input, then press Run. The sample below reads a name from stdin.

Keep exploring