MCPcopy Create free account
hub / github.com/kataras/iris / NewDependency

Function NewDependency

hero/dependency.go:78–80  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

76//
77// See `Container.Handler` for more.
78func NewDependency(dependency interface{}, funcDependencies ...*Dependency) *Dependency { // used only on tests.
79 return newDependency(dependency, false, false, nil, funcDependencies...)
80}
81
82func newDependency(
83 dependency interface{},

Calls 1

newDependencyFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…