NewDependency converts a function or a function which accepts other dependencies or static struct value to a *Dependency. See `Container.Handler` for more.
(dependency interface{}, funcDependencies ...*Dependency)
| 76 | // |
| 77 | // See `Container.Handler` for more. |
| 78 | func NewDependency(dependency interface{}, funcDependencies ...*Dependency) *Dependency { // used only on tests. |
| 79 | return newDependency(dependency, false, false, nil, funcDependencies...) |
| 80 | } |
| 81 | |
| 82 | func newDependency( |
| 83 | dependency interface{}, |
searching dependent graphs…