Hands-On Dependency Injection in Go

Dependency Injection in Go, often considered to be tedious, made easy with this comprehensive guide.
Code Files

Hands-On Dependency Injection in Go

Corey Scott

Dependency Injection in Go, often considered to be tedious, made easy with this comprehensive guide.
This title is available to pre-order now and is expected to be published in
eBook
€10.36
RRP €37.18
Save 72%
Print + eBook
€38.99
RRP €38.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
€10.36
€38.99
RRP €37.18
RRP €38.99
eBook
Print + eBook

Frequently bought together


Hands-On Dependency Injection in Go Book Cover
Hands-On Dependency Injection in Go
€ 37.18
€ 10.36
Ethereum Cookbook Book Cover
Ethereum Cookbook
€ 37.18
€ 10.36
Buy 2 for €20.72
Save €44.70
Add to Cart

Book Details

ISBN 139781789132762
Paperback397 pages

Book Description

Go simplifies the process of building steadfast and well-organized software. Leverage Dependency Injection and Testings to produce clean, loosely coupled Go code that is inherently easier to read, maintain, test and extend.

Hands-On Dependency Injection and Testing in Go is an in-depth guide to Dependency Injection and the SOLID principles for Go. It will take you on a journey to refactor existing code to adopt Dependency Injection using several methods available in Go. Each method is explained in detail, focusing on their strengths and weakness and with the help of examples, and you will gain knowledge on how to best leverage the method to transform the code into something simple and flexible. Moving ahead, you will learn how to incorporate the dependency graph to spot and eliminate issues. The book will educate you on the techniques involved in using Dependency Injection with test stubs and mocks to test otherwise difficult or impossible scenarios and achieve thorough unit test coverage.

Finally, we will talk about how to design a system from scratch to support Dependency Injection and also Dependency Injection anti-patterns.

Table of Contents

What You Will Learn

  • Understand the benefits of Dependency Injection.
  • Explore several Dependency Injection patterns in Go.
  • Learn to leverage Dependency Injection to produce high quality, loosely coupled and thoroughly tested Go code.
  • Gain insight on how to refactor existing Go code to use Dependency Injection.
  • Learn to design a Go new package or system to use Dependency Injection

Authors

Table of Contents

Book Details

ISBN 139781789132762
Paperback397 pages
Read More

Read More Reviews

These popular $10 titles might interest you

Ethereum Cookbook Book Cover
Ethereum Cookbook
€ 37.18
€ 10.36
Hands-On Serverless Applications with Go Book Cover
Hands-On Serverless Applications with Go
€ 37.18
€ 10.36
Managing Mission - Critical Domains and DNS Book Cover
Managing Mission - Critical Domains and DNS
€ 35.98
€ 10.36
Hands-On Go Programming Book Cover
Hands-On Go Programming
€ 25.18
€ 10.36
Hands-on Concurrency with Go [Video] Book Cover
Hands-on Concurrency with Go [Video]
€ 128.38
€ 10.36
Hands-on iOS Applications with Firebase [Video] Book Cover
Hands-on iOS Applications with Firebase [Video]
€ 128.38
€ 10.36