MCPcopy Create free account
hub / github.com/golobby/container / Resolve

Method Resolve

container.go:223–225  ·  view source on GitHub ↗

Resolve takes an abstraction (reference of an interface type) and fills it with the related concrete.

(abstraction interface{})

Source from the content-addressed store, hash-verified

221
222// Resolve takes an abstraction (reference of an interface type) and fills it with the related concrete.
223func (c Container) Resolve(abstraction interface{}) error {
224 return c.NamedResolve(abstraction, "")
225}
226
227// NamedResolve takes abstraction and its name and fills it with the related concrete.
228func (c Container) NamedResolve(abstraction interface{}, name string) error {

Calls 1

NamedResolveMethod · 0.95