re-formatted, better structure

This commit is contained in:
2025-12-01 18:09:10 +01:00
parent 4a668493c4
commit 46aef47e21
9 changed files with 328 additions and 235 deletions

15
main.go
View File

@@ -2,10 +2,8 @@ package main
import (
"flag"
"fmt"
"homestead/homestead_gateway/controller"
"homestead/homestead_gateway/util/config"
"homestead/homestead_gateway/util/logger"
)
func main() {
@@ -15,19 +13,6 @@ func main() {
panic(err)
}
l, c, e := logger.New("yomama", cfg.Log)
if e != nil {
panic(e)
}
defer c()
l.Debug("debug")
l.Info("info")
l.Warn("warn")
l.Error("error")
panic(fmt.Sprintf("%+v", cfg.Log))
ctrl := controller.NewGatewayController(*cfg)
err = ctrl.Run()
if err != nil {