[v3] Add Get for application instance

This commit is contained in:
Lea Anthony 2023-07-08 22:51:33 +10:00
commit f3974deb88
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

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