Go by Example: Programmer's guide to idiomatic and testable code
Go beyond Go syntax into the language’s unique perspective on program design.

Through engaging hands-on examples, Go by Example will teach you to think differently about programming in Go. You’ll get to grips with the “Go mindset”, writing code that’s simple, straightforward, and easy to understand for your fellow Go developers. You’ll discover how Go’s tooling helps you write code that’s robust and testable, and see just how productive you can be with Go's rich set of built-in packages.

In Go by Example you will learn how to:

• Understand what makes Go different and adopt its philosophy for simple, pragmatic, and straightforward code
• Write idiomatic code that’s robust, efficient, maintainable, and inherently testable by design
• Identify common Go mistakes and apply proven patterns for higher quality code
• Structure and organize effective Go packages and APIs
• Build performant concurrent programs with Go’s unique concurrency

Go by Example explores what makes Go so dramatically different from other languages. Through hands-on and realistic project examples—like command-line tools, web services, and scalable concurrent programs—it helps experienced developers unlearn habits and quickly become productive in crafting truly Go-like, high-quality code.

About the technology

You can’t appreciate the simplicity, explicitness, and pragmatism of Go until you see it with your own eyes! Even a quick glance at an elegant interface or a bit of clean error handling code reveals why Go was the language of choice for Kubernetes, Docker, and Terraform.

About the book

Go by Example unpacks real Go programs to highlight the language features and idiomatic coding practices used by the pros. In it, you’ll dissect and explore examples of command-line tools, concurrent programs, web services, and more as you learn to write Go code that’s simple, efficient, and testable.

What's inside

• Acquire the “Go mindset”
• Write idiomatic, reliable, and maintainable code
• Structure Go projects and packages
• Best practices and antipatterns

About the reader

For experienced programmers.

About the author

Inanc Gumus is a veteran programmer who has specialized in Go since 2012. Inanc has educated over 100,000 developers through his social presence, GitHub repositories, online courses, and his popular blog.

Table of Contents

1 Getting started
2 Idioms and testing
3 Test coverage and optimization
4 Command-line interfaces
5 Dependency injection
6 Synchronous APIs for concurrency
7 Responsive and efficient programs
8 Structuring packages and services
9 Composition patterns
10 Polymorphic storage
1144658872
Go by Example: Programmer's guide to idiomatic and testable code
Go beyond Go syntax into the language’s unique perspective on program design.

Through engaging hands-on examples, Go by Example will teach you to think differently about programming in Go. You’ll get to grips with the “Go mindset”, writing code that’s simple, straightforward, and easy to understand for your fellow Go developers. You’ll discover how Go’s tooling helps you write code that’s robust and testable, and see just how productive you can be with Go's rich set of built-in packages.

In Go by Example you will learn how to:

• Understand what makes Go different and adopt its philosophy for simple, pragmatic, and straightforward code
• Write idiomatic code that’s robust, efficient, maintainable, and inherently testable by design
• Identify common Go mistakes and apply proven patterns for higher quality code
• Structure and organize effective Go packages and APIs
• Build performant concurrent programs with Go’s unique concurrency

Go by Example explores what makes Go so dramatically different from other languages. Through hands-on and realistic project examples—like command-line tools, web services, and scalable concurrent programs—it helps experienced developers unlearn habits and quickly become productive in crafting truly Go-like, high-quality code.

About the technology

You can’t appreciate the simplicity, explicitness, and pragmatism of Go until you see it with your own eyes! Even a quick glance at an elegant interface or a bit of clean error handling code reveals why Go was the language of choice for Kubernetes, Docker, and Terraform.

About the book

Go by Example unpacks real Go programs to highlight the language features and idiomatic coding practices used by the pros. In it, you’ll dissect and explore examples of command-line tools, concurrent programs, web services, and more as you learn to write Go code that’s simple, efficient, and testable.

What's inside

• Acquire the “Go mindset”
• Write idiomatic, reliable, and maintainable code
• Structure Go projects and packages
• Best practices and antipatterns

About the reader

For experienced programmers.

About the author

Inanc Gumus is a veteran programmer who has specialized in Go since 2012. Inanc has educated over 100,000 developers through his social presence, GitHub repositories, online courses, and his popular blog.

Table of Contents

1 Getting started
2 Idioms and testing
3 Test coverage and optimization
4 Command-line interfaces
5 Dependency injection
6 Synchronous APIs for concurrency
7 Responsive and efficient programs
8 Structuring packages and services
9 Composition patterns
10 Polymorphic storage
36.99 In Stock
Go by Example: Programmer's guide to idiomatic and testable code

Go by Example: Programmer's guide to idiomatic and testable code

by Inanc Gumus
Go by Example: Programmer's guide to idiomatic and testable code

Go by Example: Programmer's guide to idiomatic and testable code

by Inanc Gumus

eBook

$36.99 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

Go beyond Go syntax into the language’s unique perspective on program design.

Through engaging hands-on examples, Go by Example will teach you to think differently about programming in Go. You’ll get to grips with the “Go mindset”, writing code that’s simple, straightforward, and easy to understand for your fellow Go developers. You’ll discover how Go’s tooling helps you write code that’s robust and testable, and see just how productive you can be with Go's rich set of built-in packages.

In Go by Example you will learn how to:

• Understand what makes Go different and adopt its philosophy for simple, pragmatic, and straightforward code
• Write idiomatic code that’s robust, efficient, maintainable, and inherently testable by design
• Identify common Go mistakes and apply proven patterns for higher quality code
• Structure and organize effective Go packages and APIs
• Build performant concurrent programs with Go’s unique concurrency

Go by Example explores what makes Go so dramatically different from other languages. Through hands-on and realistic project examples—like command-line tools, web services, and scalable concurrent programs—it helps experienced developers unlearn habits and quickly become productive in crafting truly Go-like, high-quality code.

About the technology

You can’t appreciate the simplicity, explicitness, and pragmatism of Go until you see it with your own eyes! Even a quick glance at an elegant interface or a bit of clean error handling code reveals why Go was the language of choice for Kubernetes, Docker, and Terraform.

About the book

Go by Example unpacks real Go programs to highlight the language features and idiomatic coding practices used by the pros. In it, you’ll dissect and explore examples of command-line tools, concurrent programs, web services, and more as you learn to write Go code that’s simple, efficient, and testable.

What's inside

• Acquire the “Go mindset”
• Write idiomatic, reliable, and maintainable code
• Structure Go projects and packages
• Best practices and antipatterns

About the reader

For experienced programmers.

About the author

Inanc Gumus is a veteran programmer who has specialized in Go since 2012. Inanc has educated over 100,000 developers through his social presence, GitHub repositories, online courses, and his popular blog.

Table of Contents

1 Getting started
2 Idioms and testing
3 Test coverage and optimization
4 Command-line interfaces
5 Dependency injection
6 Synchronous APIs for concurrency
7 Responsive and efficient programs
8 Structuring packages and services
9 Composition patterns
10 Polymorphic storage

Product Details

ISBN-13: 9781638357667
Publisher: Manning
Publication date: 10/07/2025
Sold by: SIMON & SCHUSTER
Format: eBook
Pages: 336
File size: 2 MB

About the Author

Inanc Gumus has over 20 years of experience in software engineering. For the last four years, he has worked as a consultant for Go software architecture, focusing on best practices and testing. Inanc is also an open-source contributor to the official Go test package, and teaches Go through online courses, his blog, his Youtube channel, and GitHub repository with over 10,000 stars.
From the B&N Reads Blog

Customer Reviews