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 text was updated successfully, but these errors were encountered:
dustin-decker
changed the title
Period in map key name not breaks when unmarshalling to struct
Period in map key name breaks when unmarshalling to struct
May 17, 2017
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.
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: