Learn / Go

Track

Go, simple and fast.

Go is a small, fast language used across cloud and backend work. You write it here and run it on our own secure code runner, with instant feedback on what it prints.

  1. 1Your first Go program
    Write and run your first Go program: package main, func main and fmt.Println.
  2. 2Variables and formatted output
    Short variable declarations with := and formatted printing with fmt.Printf in Go.
  3. 3Loops and functions
    Write a Go function and a for loop to add up the numbers 1 to 100.
  4. 4Errors, the Go way
    Handle errors in Go with the value-and-error pattern and strconv.Atoi.