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
A maintainer will take a look at your issue shortly. 👀
In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues.
📣 If you've already given us your feedback, you can still help by spreading the news,
either by sharing the above link or telling people about this on Twitter:
Expected behavior (what you expected to happen):
By using a yaml file with an array and 3 fields, e.g.
and creating a struct
should fill the structs with string genre,int x and y.
Actual behavior (what actually happened):
Field Y stays empty. X is filled with a value.
Workaround:
Rename yaml field to any other variable, e.g.
mm
and use in struct:Y int `mapstructure:"mm"`
Environment:
The text was updated successfully, but these errors were encountered: