Decode: don't break on non-struct embed field (#810)
This commit is contained in:
+4
-1
@@ -1211,7 +1211,10 @@ func forEachField(t reflect.Type, path []int, do func(name string, path []int))
|
||||
if t2.Kind() == reflect.Pointer {
|
||||
t2 = t2.Elem()
|
||||
}
|
||||
forEachField(t2, fieldPath, do)
|
||||
|
||||
if t2.Kind() == reflect.Struct {
|
||||
forEachField(t2, fieldPath, do)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user