The main nice fix here is that maps unmarshal into map[string]any
instead of map[any]any, so it cleans things up a bit.
The only gotcha I see for our uses is that the Yaml 1.1 bool types like yes won't automatically be set as a bool inside of map[string]any. So I added a little helper config.AsBool to keep backwards compat there.
The main nice fix here is that maps unmarshal into
map[string]any
instead ofmap[any]any
, so it cleans things up a bit.The only gotcha I see for our uses is that the Yaml 1.1 bool types like
yes
won't automatically be set as a bool inside ofmap[string]any
. So I added a little helperconfig.AsBool
to keep backwards compat there.