MustResolve wraps the `Resolve` method and panics on errors instead of returning the errors.
(c Container, abstraction interface{})
| 65 | |
| 66 | // MustResolve wraps the `Resolve` method and panics on errors instead of returning the errors. |
| 67 | func MustResolve(c Container, abstraction interface{}) { |
| 68 | if err := c.Resolve(abstraction); err != nil { |
| 69 | panic(err) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | // MustNamedResolve wraps the `NamedResolve` method and panics on errors instead of returning the errors. |
| 74 | func MustNamedResolve(c Container, abstraction interface{}, name string) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…