change template
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user