"Generics, real error handling, actual project structure, the stuff I had to go learn the hard way elsewhere is finally just in the book now."
—Mario Carrion, Paramount
Go in Action, Second Edition is the definitive guide to mastering Go’s unique type system and high-performance concurrency model. Coauthored by industry veterans Joel Holmes, Andrew Walker, and Go legend William Kennedy, this fully revised new edition reflects modern Go practices, replacing legacy environments with Go Modules and multi-module workspaces. You’ll find full coverage of Go Generics, native fuzz testing, and structured JSON processing, along with the architectural principles you’ll need to build AI-powered and agentic applications.
Written for working developers, this insightful book explains the “why” behind Go’s design decisions and shows you how those choices make it easier to write clean, safe code for highly concurrent software. It guides you through the creation of production-grade applications, including using Domain-Driven Design (DDD) and Hexagonal Architecture to build scalable, decoupled systems. Reviewer Rene G. Perrin of the Chicago Mercantile Exchange notes the “…excellent real-world examples of non-trivial tasks,” including a CLI conversion utility and a background RSS worker, that illustrate how to write software that behaves predictably under heavy workloads.
Go in Action, Second Edition also addresses the massive shifts in the software landscape caused by AI and agentic applications. You will learn how to design architectural boundaries using the Ports and Adapters pattern so that volatile LLM models and APIs can act as swappable adapters. These architectural decoupling techniques also ensure your core business logic remains completely unchanged, whether you are targeting a massive commercial LLM or a local model.
Two comprehensive appendices walk you through a full AI engineering exercise, where you build a high-performance vector search database with Qdrant, generate semantic embeddings, and implement an LLM-powered summarization pipeline using Ollama and LangChain for Go. Reviewer Hyeonggeun Oh of Amazon Web Services comments that the book’s “focus on modern patterns and AI integration directly mirrors the evolving demands of the industry.”
Go in Action, Second Edition meets you exactly at the intersection of modern application development and the established patterns and engineering practices that still govern reliable enterprise systems. The result is a comprehensive guide that helps you integrate Go into your daily workflow—from idiomatic code to orchestrating advanced, distributed systems.
what's inside
Build swappable, decoupled architectures using Hexagonal Design patterns
Implement robust concurrency utilizing goroutines, channels, and contexts
Write secure, fuzzy-tested code to handle unstructured LLM outputs
Organize and version complex enterprise projects with Go Workspaces
about the reader
Professional developers proficient in at least one object-oriented language who want to build high-performance backend systems, cloud native applications, or AI-integrated pipelines.
about the authors
Joel Holmes is a software developer building cloud native applications at EasyPost. Andy Walker is a Google Developer Expert in Go and Gophercon staff member. A coauthor of the first edition of Go in Action, William Kennedy is a founding member of GoBridge.
eBook
pdf, ePub, online
$47.99
$35.99
you save $12.00 (25%)
print
includes eBook
$59.99
$44.99
you save $15.00 (25%)
with subscription
free or 50% off
$24.99
pro $24.99 per month
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!