Go by Example logo

Go by Example

Free

Hands-on introduction to Go with annotated examples.

FreeFree tier
Type
Open Source

About Go by Example

Go by Example is a hands-on introduction to the Go programming language using annotated example programs. It covers a wide range of topics from basic syntax (Hello World, variables, loops, conditionals) to advanced features (goroutines, channels, interfaces, generics, testing, HTTP servers, and more). All examples are open source and available under a permissive license, making it a practical reference for both beginners and experienced developers.

Key Features

Annotated example programs for every Go concept
Covers fundamentals (variables, functions, structs) to advanced topics (goroutines, channels, generics)
Free and open source with permissive license
Examples assume latest Go release and use modern language features
Includes practical examples like HTTP clients/servers, file I/O, JSON/XML, testing, and command-line tools

Pros & Cons

Pros
  • Comprehensive coverage of Go features from basics to concurrency and networking
  • Annotated code makes it easy to understand each example
  • Entirely free and open source
  • Well-organized list allows incremental learning
Cons
  • No interactive coding environment or exercises for practice
  • Relies on self-directed learning; lacks built-in assessments or quizzes

Best For

Learning Go from scratch with a hands-on approachQuick reference for Go syntax and standard library patternsTeaching Go in classrooms or workshopsSelf-paced practice for Go developers

FAQ

What is Go by Example?
Go by Example is a hands-on introduction to the Go programming language using annotated example programs.
Is Go by Example free?
Yes, Go by Example is completely free and open source.
What topics does Go by Example cover?
It covers a wide range of topics from basic syntax (Hello World, variables, loops, conditionals) to advanced features like goroutines, channels, interfaces, generics, testing, and HTTP servers.
Who created Go by Example?
Go by Example was created by Mark McGranaghan and Eli Bendersky.