Go’s standard library can handle far more than the basics. In Go Standard Library Cookbook, Radomír Sohlich presents more than 120 practical recipes for using Go’s built-in packages to tackle everyday development tasks—from working with the operating system to building networked services. The emphasis is on concrete problems and usable solutions, with explanations that help connect each example to the ideas behind it.
Practical recipes across the Go toolkit
The book progresses from environment and process handling through strings, numbers, dates, input and output, and filesystem operations. Later chapters turn to networking, databases, TCP and HTTP servers, concurrency, and testing. This breadth makes the collection useful as a way to explore how Go’s standard tools fit into different parts of an application.
Follow the problem, then the implementation
Recipes are structured to guide readers through setup, implementation, and an explanation of how the solution works. That format suits developers who want to study a focused example, understand its moving parts, and consider how the same approach might apply in their own code.
From command-line work to servers
Examples span tasks such as accessing environment variables, handling child processes, manipulating text and numbers, reading and writing files, and working with dates. Networking and server topics include HTTP requests, RESTful APIs, TCP and UDP servers, middleware, and redirects. Database recipes address connections, queries, prepared statements, and transactions.
Useful for developers expanding their Go practice
The book assumes basic Go knowledge, so it is suited to readers who already know the language and want to build a wider working familiarity with its standard library. Its recipe-by-recipe organization also makes it convenient to consult when a particular programming task is at hand.
For Go developers looking for practical examples across the language’s built-in toolkit, this cookbook offers a broad collection to read through or return to as projects call for it.
User Reviews
Only logged in customers who have purchased this product may leave a review.
Original price was: $37.86.$18.93Current price is: $18.93.

There are no reviews yet.