Added application config parsing
This commit is contained in:
parent
452a109204
commit
cff9082aac
@ -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)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user