Cleanup the injection of nil for dependencies #170
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some services require lots of dependencies and this means that every consumer (worker, api, etc) has to inject that. Many times, we have leaky abstraction by allowing some dependencies to be optional, and it's overall fragile if we continue to do this.
We have several patterns in addition to passing nil, including Noop implementation structs, and more.
Completed with the following idiomatic go patterns: