diff --git a/main.go b/main.go index f6b1f49..0506479 100644 --- a/main.go +++ b/main.go @@ -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