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

Function MustNamedResolve

must.go:74–78  ·  view source on GitHub ↗

MustNamedResolve wraps the `NamedResolve` method and panics on errors instead of returning the errors.

(c Container, abstraction interface{}, name string)

Source from the content-addressed store, hash-verified

72
73// MustNamedResolve wraps the `NamedResolve` method and panics on errors instead of returning the errors.
74func MustNamedResolve(c Container, abstraction interface{}, name string) {
75 if err := c.NamedResolve(abstraction, name); err != nil {
76 panic(err)
77 }
78}
79
80// MustFill wraps the `Fill` method and panics on errors instead of returning the errors.
81func MustFill(c Container, receiver interface{}) {

Callers

nothing calls this directly

Calls 1

NamedResolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…