code:
func main() {
var cfg = struct {
Name string ``
Age int `default:"30"`
}{"Lily", 29}
multiconfig.MustLoadWithPath("config.toml", &cfg)
fmt.Println(cfg)
}
config:
name = "Tom"`
the result is "{Tom 30}",I expected cfg's Age is 29, I think cfg's Age will be 30 when not initialized
code: func main() { var cfg = struct { Name string `` Age int `default:"30"` }{"Lily", 29} multiconfig.MustLoadWithPath("config.toml", &cfg) fmt.Println(cfg) } config: name = "Tom"`
the result is "{Tom 30}",I expected cfg's Age is 29, I think cfg's Age will be 30 when not initialized