Skip to content

Glossary: Software Design Patterns in Go

Dependency

Also written: dependencies

Anything code needs to do its job, such as a database, a notifier or the clock. The old `placeOrder` fetched all of its dependencies itself.

Where the book teaches it

Related terms

Dependency injection