Hands-On Dependency Injection in Go

Develop clean Go code that is easier to eead, maintain, and test



Bookstore > Books > Hands-On Dependency Injection in Go

Price$39.99 - $50.02
Rating
AuthorCorey Scott
PublisherPackt Publishing
Published2018
Pages346
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101789132762
ISBN-139781789132762
EBook Hardcover Paperback

Hands-On Dependency Injection in Go takes you on a journey, teaching you about refactoring existing code to adopt dependency injection (DI) using various methods available in Go.

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.

Hands-On Dependency Injection in Go takes a pragmatic approach and focuses heavily on the code, user experience, and how to achieve long-term benefits through incremental changes.

By the end of this book, you will have produced clean code that's easy to test.





Similar Books


Hands-On Cloud Administration in Azure

Hands-On Cloud Administration in Azure

by Mustafa Toroman

Azure continues to dominate the public cloud market and grow rapidly thanks to a number of recent innovations. Azure's wide range of services and support has led to a large number of customers switching to Azure cloud.Hands-On Cloud Administration in Azure starts with the basics of Azure cloud fundamentals and key concepts of the cloud co...

Price:  $44.99  |  Publisher:  Packt Publishing  |  Release:  2018

Practical Data Analysis

Practical Data Analysis

by Hector Cuesta

Plenty of small businesses face big amounts of data but lack the internal skills to support quantitative analysis. Understanding how to harness the power of data analysis using the latest open source technology can lead them to providing better customer service, the visualization of customer needs, or even the ability to obtain fresh insi...

Price:  $29.99  |  Publisher:  Packt Publishing  |  Release:  2013

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

by Ravi Saraswathi, Jaswant Singh

BPEL, Business Process Execution Language is the definitive standard in writing and defining actions within business processes. Oracle BPEL Process Manager R1 is Oracle's latest offering, providing you with a complete end-to-end platform for the creation, implementation, and management of your BPEL business processes that are so important...

Price:  $32.99  |  Publisher:  Packt Publishing  |  Release:  2013

Hands-On Markov Models with Python

Hands-On Markov Models with Python

by Ankur Ankan, Abinash Panda

Hidden Markov Model (HMM) is a statistical model based on the Markov chain concept. Hands-On Markov Models with Python helps you get to grips with HMMs and different inference algorithms by working on real-world problems. The hands-on examples explored in the book help you simplify the process flow in machine learning by using Markov mode...

Price:  $34.99  |  Publisher:  Packt Publishing  |  Release:  2018

Hands-On Artificial Intelligence for Beginners

Hands-On Artificial Intelligence for Beginners

by Patrick D. Smith

Virtual Assistants, such as Alexa and Siri, process our requests, Google's cars have started to read addresses, and Amazon's prices and Netflix's recommended videos are decided by AI. Artificial Intelligence is one of the most exciting technologies and is becoming increasingly significant in the modern world.Hands-On Artificial Intelligen...

Price:  $36.50  |  Publisher:  Packt Publishing  |  Release:  2018

Hands-On Go Programming

Hands-On Go Programming

by Tarik Guney

With its C-like speed, simplicity, and power for a growing number of system-level programming domains, Go has become increasingly popular among programmers. Hands-On Go Programming teaches you the Go programming by solving commonly faced problems with the help of recipes. You will start by installing Go binaries and get familiar with the ...

Price:  $29.99  |  Publisher:  Packt Publishing  |  Release:  2018

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things

by Giacomo Veneri, Antonio Capasso

We live in an era where advanced automation is used to achieve accurate results. To set up an automation environment, you need to first configure a network that can be accessed anywhere and by any device. This book is a practical guide that helps you discover the technologies and use cases for Industrial Internet of Things (IIOT).Hands-On...

Price:  $44.99  |  Publisher:  Packt Publishing  |  Release:  2018

Pointers in C

Pointers in C

by Naveen Toppo, Hrishikesh Dewan

Pointers in C provides a resource for professionals and advanced students needing in-depth but hands-on coverage of pointer basics and advanced features. The goal is to help programmers in wielding the full potential of pointers.In spite of its vast usage, understanding and proper usage of pointers remains a significant problem. This bo...

Price:  $36.69  |  Publisher:  Apress  |  Release:  2013