You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cfg structure is asking for the scalar "service.name" and that is clearly not what is in your base.yaml. Get splits key names on periods and the underlying go-yaml/yaml does not. So if you want the underlying yaml parser to populate service mapping name scalar, then you'll need to unfold the cfg structure:
typecfgstruct {
Servicestruct {
Namestring
}
}
If you prefer the period splitting behavior, then call Get(...).Populate(...) for every value you'd like to pick up.
I'd also try to avoid using go-yaml/yaml field tags if at all possible. The DSL behavior isn't prescribed in this package's documentation, nor is the leaking of go-yaml/yaml. You'd be in a tight spot if the backing parser were to be changed.
base.yaml
main.go
Expected result:
{Name:abc {Service:{Name:abc}}
Actual result:
{Name: {Service:{Name:abc}}
Pinned down to 46dea54 after
git bisect
The text was updated successfully, but these errors were encountered: