Replies: 1 comment 1 reply
-
Chances are it's because the new version of the yaml library uses |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use Viper 1.10.1 to run the code below, it runs with no error.
However, when I switch Viper to 1.18.2, the following error occurs:
panic: interface conversion: interface {} is map[string]interface {}, not map[interface {}]interface {}
When I change the line
modelObj := modelDefObjs[modelIdx].(map[interface{}]interface{})
tomodelObj := modelDefObjs[modelIdx].(map[string]interface{})
and use Viper 1.10.1, the following error occurs:panic: interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}
Could anyone tell me why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions