Go learning hub

Learn Go, One Lesson at a Time

Short lessons on Go with code you can run in your browser. Follow a path from the basics, then practice with challenges.

Learning paths

Follow a path: short lessons first, then a challenge to check you can use the idea on your own.

Explore Go topics

Data Types

Work with int, float64, bool, rune and string, and convert between them.

View lesson →

Strings

Join, search, split and slice text with Go strings and the strings package.

View lesson →

Arrays

Store a fixed number of values and see that arrays are copied on assignment.

View lesson →

Maps

Store and look up values by key with Go maps.

View lesson →