Skip to content

Glossary: Software Design Patterns in Go

DI container

Also written: dependency injection container

A library that builds objects from a list of rules. Go programs rarely need one, because plain constructor calls in `main` stay readable.

Where the book teaches it

Related terms

Dependency injectionService locator