[v3] Add Get for application instance

This commit is contained in:
Lea Anthony
2023-07-08 22:51:33 +10:00
parent 1945616328
commit f3974deb88
+4
View File
@@ -38,6 +38,10 @@ type EventListener struct {
callback func()
}
func Get() *App {
return globalApplication
}
func New(appOptions Options) *App {
if globalApplication != nil {
return globalApplication