print config

This commit is contained in:
Egor Aristov 2025-03-21 11:31:30 +03:00
parent af02b01d12
commit a9ee50d722
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -43,6 +43,9 @@ func Read() (Config, error) {
panic(fmt.Errorf("register validation: %w", err))
}
err = validate.Struct(cfg)
if err == nil {
fmt.Printf("Config: %+v\n", cfg)
}
return cfg, err
}