All cheatsheetsOpen Go editor

Go Online Compiler

Write, Run & Share Go code online using CodeCompiler's free online Go editor. Go is a statically typed, compiled language designed at Google.

About Go

Go (Golang) is fast, simple, and great for concurrent systems and cloud-native applications.

Hello World

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

Goroutines

go func() {
    fmt.Println("running concurrently")
}()