Free Download Hands-On Dependency Injection in Go:
Develop clean Go code that is easier to read, maintain, and test
by Corey Scott
English | 2018 | ISBN: 9781789132762 | 346 Pages | PDF EPUB MOBI (True) | 10 MB
Of the six methods introduced in this book, some are conventional, such as constructor or method injection, and some unconventional, such as just-in-time or config injection. Each method is explained in detail, focusing on their strengths and weaknesses, and is followed with a step-by-step example of how to apply it. With plenty of examples, you will learn how to leverage DI to transform code into something simple and flexible. You will also discover how to generate and leverage the dependency graph to spot and eliminate issues. Throughout the book, you will learn to leverage DI in combination with test stubs and mocks to test otherwise tricky or impossible scenarios.
Code:
Bitte
Anmelden
oder
Registrieren
um Code Inhalt zu sehen!