/Go-Recipes-for-Developers

Go Recipes for Developers, published by Packt

Primary LanguageGoMIT LicenseMIT

Go Recipes for Developers

This is the code repository for Go Recipes for Developers, published by Packt.

Top techniques and practical solutions for real-life Go programming problems

What is this book about?

This recipe-based guide starts with a basic project structure and advances to explore best practices applicable to common situations and not-so-common problems every engineer faces during their work.

This book covers the following exciting features:

  • Understand how to structure projects
  • Find out how to process text with Go tools
  • Discover how to work with arrays, slices, and maps
  • Implement robust error handling patterns
  • Explore concurrent data processing for Go programs
  • Get up to speed with how to control processes
  • Integrate Go applications with databases
  • Understand how to test, benchmark, and profile Go programs

If you feel this book is for you, get your copy today!

Instructions and Navigations

Some code may appear slightly different between the Chapter and the Repository. While the functionality remains the same, the code is not exactly identical. For example, in Chapter 5: in one instance, it is referred to as 'Package Auth' in the Chapter, whereas it is 'Package Main' in the Repository to ensure the code is executable.

All of the code is organized into folders. For example, Chp2.

The code will look like the following:

ctx:=context.Background()
cancelable, cancel:=context.WithCancel(ctx)
defer cancel()

Following is what you need for this book: This book is for any developer with a basic understanding of the Go language. If you’re a senior developer, you can use it as a reference for finding useful examples they can apply to different use cases..

With the following software and hardware list you can run all code files present in the book.

Software and Hardware List

Software/ Hardware required OS required/ Other requirements
Go 1.22 or newer Windows, macOS, or Linux

Related products

Get to Know the Author

Burak Serdar is a software engineer with over 30 years of experience designing and developing distributed applications. He has used Go to create backend software, data processing platforms, interactive applications, and automation systems. Burak has worked for both startups and large corporations as an engineer and technical lead. He holds B.Sc. and M.Sc. degrees in Electrical and Electronics Engineering, as well as an M.Sc. degree in Computer Science.

Other Books by the Author