mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-22 15:18:02 +00:00
Split a bit of backend code
This commit is contained in:
15
internal/app/app.go
Normal file
15
internal/app/app.go
Normal file
@ -0,0 +1,15 @@
|
||||
package app
|
||||
|
||||
import "context"
|
||||
|
||||
type App struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewApp() *App {
|
||||
return &App{}
|
||||
}
|
||||
|
||||
func (a *App) Startup(ctx context.Context) {
|
||||
a.ctx = ctx
|
||||
}
|
Reference in New Issue
Block a user