Practical techniques for building concurrent, cloud-native, and high performance Go applications—all accelerated with productivity-boosting AI tools.
Go in Practice, Second Edition is full of tips, tricks, best practices, and expert insights into how to get things done with Go. It builds on your existing knowledge of the Go language, introducing specific strategies you can use to maximize your productivity in day-to-day dev work.
In Go in Practice, Second Edition, you’ll learn:
Concurrency with goroutines and channels
Web servers and microservices with event streams and websockets
Logging, caching, and data access from environment variables and files
Cloud-native Go applications
AI tools to accelerate your development workflow
Go in Practice, Second Edition has been extensively revised by author Nathan Kozyra to cover the latest version of Go, along with new dev techniques, including productivity-boosting AI tools. It follows an instantly-familiar cookbook-style Problem/Solution/Discussion format, building on what you already know about Go with advanced or little-known techniques for concurrency, logging and caching, microservices, testing, deployment, and more.
About the Technology You’ve mastered the basics of Go—now what? To build production-quality Go applications, you’ll need to handle concurrency, networking, file access, native communication protocols like gRPC and TCP/REST, and a host of other practical issues. Following a friendly cookbook format, this book gives you instantly-useful solutions to the problems you’ll see on the job.
About the Book Go in Practice, Second Edition delivers dozens of practical techniques for writing and maintaining Go applications following a handy problem/solution/discussion format. This up-to-date revision covers the latest Go innovations, including generics, panics and other error handling tools, and modern concurrency patterns, along with advanced features like reflection and code generation. You’ll also love the tips for integrating AI code completion into your development process.
What's Inside
Concurrency with goroutines and channels
Web servers and microservices
Logging, caching, and data access
About the Reader For intermediate developers with previous experience in Go.
About the Authors Nathan Kozyra is a full-stack developer with twenty years of experience building production web and mobile applications. He’s worked with Go since 2009 in both large companies and startups. Matt Butcher and Matt Farina authored the first edition of this book.
Quotes The engineer’s guide to Go! Examples, pitfalls, and scalable approaches worthy of apprentices and architects alike. - Zachary Manning, Zillow
Essential reading for Go coders! Offers practical tips and deep insights to harness Golang’s potential. - Sergio Britos Arevalo, Schwarz Global Services
Mandatory reading for anyone who joins our team—with or without prior Go experience! - Anuj More, Grab
An invaluable reference for Go developers. - Jonathan Reeves, EQL Games
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.