MustGetApplication same as `GetApplication` but it panics if "appName" is not a registered Application's name.
(appName string)
| 200 | // MustGetApplication same as `GetApplication` but it |
| 201 | // panics if "appName" is not a registered Application's name. |
| 202 | func MustGetApplication(appName string) Application { |
| 203 | app, ok := GetApplication(appName) |
| 204 | if !ok || app == nil { |
| 205 | panic(appName + " is not a registered Application") |
| 206 | } |
| 207 | |
| 208 | return app |
| 209 | } |
| 210 | |
| 211 | // DefaultLogger returns a Logger instance for an Iris module. |
| 212 | // If the program contains at least one registered Iris Application |
nothing calls this directly
no test coverage detected
searching dependent graphs…