In this chapter, we examined the state and quality of our sample service after applying DI, and contrasted that with its original state, thereby reminding ourselves both why we made the changes, and what we gained from making them.
We took one final look at our dependency graph to get a visual perspective on just how well we managed to decouple our packages.
We also saw how our sample service was both significantly easier to test, and that our tests were much more focused after making our changes.
At the end of the chapter, we also discussed how to approach starting a new service and how DI can help with that endeavor too.
With that, we have finished our examination of DI for Go. Thank you for taking the time to read this book—I hope that you have found it both pragmatic and useful.
Happy coding!