MCPcopy Create free account
hub / github.com/kataras/iris / MustGetApplication

Function MustGetApplication

context/application.go:202–209  ·  view source on GitHub ↗

MustGetApplication same as `GetApplication` but it panics if "appName" is not a registered Application's name.

(appName string)

Source from the content-addressed store, hash-verified

200// MustGetApplication same as `GetApplication` but it
201// panics if "appName" is not a registered Application's name.
202func 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

Callers

nothing calls this directly

Calls 1

GetApplicationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…