change template

This commit is contained in:
2025-08-27 00:05:04 +02:00
parent 2c109b945e
commit 83b3a23fe4
9 changed files with 66 additions and 25 deletions

View File

@@ -16,12 +16,15 @@ func main() {
flag.Parse()
slog.Info("loading configuration...")
d := data.Load(configFile)
d, err := data.Load(configFile)
if err != nil {
panic(err)
}
slog.Info("configuration loaded!")
slog.Info(fmt.Sprintf("starting server on :%d", port))
s := api.New(uint16(port), d)
err := s.Serve()
err = s.Serve()
if err != nil {
panic(err)
}