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
Hello, would be possible to add support to decode into map[string]interface{}. I need to decode a properties file into a generic interface{} but below code is returning an error. Is there a reason to only allow it to be a struct?
if t.Kind() != reflect.Ptr || v.Elem().Type().Kind() != reflect.Struct {
return fmt.Errorf("not a pointer to struct: %s", t)
}
The text was updated successfully, but these errors were encountered:
Hello, would be possible to add support to decode into
map[string]interface{}
. I need to decode a properties file into a genericinterface{}
but below code is returning an error. Is there a reason to only allow it to be a struct?The text was updated successfully, but these errors were encountered: