-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Period in map key name breaks when unmarshalling to struct #348
Comments
I added a go-yaml output example (which works correctly), but only after lower-casing the YAML keys. The Viper output remains the same after lower-casing the YAML keys. |
This also happens with JSON maps as well, e.g.
When unmarshalled to a struct, the error |
dupe of #324 |
21 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm unmarshalling yaml to a struct.
I've encountered issues unmarshalling if a map's key containers period character.
Struct that I unmarshall to:
YAML:
Output looks like:
I put a demo here:
https://github.com/sevoma/testViper
The text was updated successfully, but these errors were encountered: