https://github.com/mitchellh/mapstructure
- docker/cli
- many places in Circle, including a config library
https://github.com/dnephin/demo/blob/master/mapstructure/mapstructure_test.go
Consul config can be specified as HCL or JSON.
https://github.com/mitchellh/mapstructure
https://github.com/dnephin/demo/blob/master/mapstructure/mapstructure_test.go
Consul config can be specified as HCL or JSON.
HCL decodes opaque configuration to an ambiguous structure
Configuration fields can have multiple names
lib.TranslateKeys
sits between lib.PatchSliceOfMaps
and mapstructure.Decode
https://pkg.go.dev/github.com/mitchellh/mapstructure?tab=doc#DecodeHookFuncType
func(from reflect.Type, to reflect.Type, data interface{}) (interface{}, error)
Maybe allow opaque config to be a string literal
The config checklist is still quite long
A lot more of agent/config
can be handled by mapstructure.