Resolve takes an abstraction (reference of an interface type) and fills it with the related concrete.
(abstraction interface{})
| 221 | |
| 222 | // Resolve takes an abstraction (reference of an interface type) and fills it with the related concrete. |
| 223 | func (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. |
| 228 | func (c Container) NamedResolve(abstraction interface{}, name string) error { |