NOW IN BETA

Effective Go Recipes

by Miki Tebeka

Margaret Eldridge
The Pragmatic Programmers

--

Now in beta, Effective Go Recipes by Miki Tebeka gives you all the clean, reusable solutions you need for a wide variety of problems common to Go development:

We’d love to hear what you think, so if you get the beta version, please take a moment to share comments and suggestions on the book’s page on DevTalk:

Start out by tackling time and see how the Go time packager provides types that will do most of the heavy lifting for you. Next, work on recipes tailored to the nuances of processing text, like normalizing strings to avoid bugs. From there, whip up some functions on-the-fly and store functions in variables and data structures.

Ever wondered why Go seems to be peppered with error handling? Working through the next recipes, you’ll discover the benefits, which include more robust code. In the section on HTTP, you’ll learn tricks like running multiple HTTP servers on the same port and setting timeouts. With concurrency recipes, you’ll limit the number of goroutines to improve performance, give your code awareness of timeouts, and decide when to keep your code sequential instead of making it concurrent.

Throughout the book, you’ll make Go sizzle following simple recipes and tweaking them to fit your own apps. Using tools like strong typing and concurrency primitives, build a Go codebase that stays maintainable at scale.

book cover featuring a cartoon frying pan tossing ingredients into the air

--

--