Get started with Go
Install Go, write your first program and learn the basics: variables, conditionals, loops, functions and slices.
Learn Go by building.
Learn Go with structured courses, practical exercises and real-world projects.
Install Go, write your first program and learn the basics: variables, conditionals, loops, functions and slices.
Master maps, structs, methods, interfaces and error handling to write idiomatic Go.
Explore concurrency with goroutines and channels, then build a tested REST API.
Create a Go module, write a runnable Hello World in main.go, then run and build it while learning package main, imports and the func main entry point.
Discover what the Go programming language is, its origins at Google, its strengths for cloud and network services, and the traits that define it.
Learn how to declare and use variables in Go with var, the short := operator, type inference and zero values, with runnable examples.
Understand arrays and slices in Go: slice literals, len and cap, append, slicing, make, ranging, and how slices share a backing array.
Learn to control the flow of a Go program with if, else if and else, the if-with-statement form, and switch, with clear runnable examples.
Learn idiomatic error handling in Go: the error interface, returning and checking errors, errors.New, wrapping with %w, errors.Is and errors.As.
Create a Go module, write a runnable Hello World in main.go, then run and build it while learning package main, imports and the func main entry point.
Every lesson lists its prerequisites and the recommended next step, from your first program to a REST API.
Complete examples are formatted with gofmt and checked automatically: they compile and run.
No ads, no trackers, no account required. The content reads even without JavaScript.