Implemented startup method to save the application context.

This commit is contained in:
Benjamin Arntzen (aider)
2024-06-27 05:47:15 +01:00
parent a348deed08
commit dffa2621c1
+6
View File
@@ -20,6 +20,12 @@ func NewApp() *App {
return &App{}
}
// startup is called when the app starts. The context is saved
// so we can call the runtime methods
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
}
//go:embed frontend
var assets embed.FS