Added application config parsing

This commit is contained in:
Magnus Åhall 2024-05-22 07:58:29 +02:00
parent 452a109204
commit cff9082aac

View File

@ -55,3 +55,8 @@ func New(filename string) (config Config, err error) {
return return
} }
func (config *Config) ParseApplicationConfig(v any) {
yStr, _ := yaml.Marshal(config.Application)
yaml.Unmarshal(yStr, &v)
}