Go Playground

Practice Go programming with interactive examples

🎮 Go Playground

Practice Go programming with interactive examples and exercises.

Online Go Playground

The official Go Playground lets you write, run, and share Go code directly in your browser:

Open Go Playground →

Try These Examples

Hello World

package main
import "fmt"
func main() {
    fmt.Println("Hello, Gophers!")
}

Goroutines

go func() {
    fmt.Println("Concurrent!")
}()

Channels

ch := make(chan int)
go func() { ch <- 42 }()
val := <-ch

Code Challenges