LastApplication returns the last registered Application. Handlers has access to the current Application, use `Context.Application()` instead.
()
| 169 | // Handlers has access to the current Application, |
| 170 | // use `Context.Application()` instead. |
| 171 | func LastApplication() Application { |
| 172 | mu.RLock() |
| 173 | for i := len(registeredApps) - 1; i >= 0; i-- { |
| 174 | if app := registeredApps[i]; app != nil { |
| 175 | mu.RUnlock() |
| 176 | return app |
| 177 | } |
| 178 | } |
| 179 | mu.RUnlock() |
| 180 | return nil |
| 181 | } |
| 182 | |
| 183 | // GetApplication returns a registered Application |
| 184 | // based on its name. If the "appName" is not unique |
no outgoing calls
no test coverage detected
searching dependent graphs…