move presenter and controller init invoke into domain

This commit is contained in:
2023-06-28 09:08:45 +02:00
parent f2b64d4d05
commit b688fb85d3
4 changed files with 7 additions and 26 deletions

12
main.go
View File

@@ -12,19 +12,13 @@ func main() {
controller := controller.Controller{
Context: context,
}
controller.Init()
presenter := presenter.Presenter{
Context: context,
}
presenter.Init()
domain := domain.Domain{
Context: context,
Context: context,
Controller: controller,
Presenter: presenter,
}
domain.Init()
domain.Start()
controller.Start()
presenter.Start()
}