Go by Example

you own this product
Programmer's guide to idiomatic and testable code
  • MEAP began October 2021
  • Last updated June 2025
  • This book is in development
  • ISBN 9781617299896
  • 300 pages (estimated)
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Unlock Go's unique perspective on program design and start writing simple, maintainable, efficient, and testable code through hands-on, realistic project examples.

In Go by Example you will learn how to:

  • Understand what makes Go different and adopt its philosophy for simple, pragmatic, and straightforward code
  • Craft programs from scratch that are robust, maintainable, and inherently testable by design
  • Identify common Go mistakes and apply proven patterns to create higher-quality code
  • Structure your projects for clarity, maintainability, and scalability
  • Leverage Go's unique concurrency model to craft efficient, scalable applications
  • Gain practical experience building CLIs, web services, and concurrent applications

Go by Example guides you to think in Go. It's a practical journey to writing high-quality code that's easy to test and maintain, packed with insights into Go's distinct philosophy. This book is full of best practices to adopt and common anti-patterns to dodge, exploring what makes Go so dramatically different from other languages. Through hands-on projects—like command-line applications, web servers, and concurrent programs—it helps experienced developers unlearn habits and quickly become productive in crafting truly Go-like, high-quality code.

about the technology

Writing well-designed Go code requires more than just porting skills from other languages. To truly leverage its power, you'll need to understand Go's unique way of working—its emphasis on simplicity, explicitness, and pragmatism. This book is your primer to effectively applying Go's design principles and understanding its core differences.

about the book

Go by Example teaches you to build high-quality Go programs by valuing simplicity, explicitness, composition, and testability. Through immersive, realistic projects, you'll learn to write idiomatic Go that's robust and adaptable, starting from the fundamentals. It's your practical guide to acquiring the "Go mindset," helping you to stop fighting the language and start delivering code that's a pleasure to work with. Easy-to-understand examples guide you through Go's essentials and advanced patterns.

about the reader

For experienced programmers with solid programming skills.

about the author

Inanc Gumus is a veteran programmer with decades of experience in programming. Specializing in Go since 2012, he has educated over 100,000 developers through his social media presence, GitHub repositories, online courses, and blog.
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Go by Example ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Go by Example ebook for free