We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7c9d5c commit f4bcea6Copy full SHA for f4bcea6
do.go
@@ -71,7 +71,9 @@ func Do(dst, src interface{}) error {
71
if field.Type.Kind() == reflect.Struct {
72
// Pass the address of the interface type to recursion so all supported values get set
73
// in entire structure tree
74
- return Do(vDst.Elem().Field(i).Addr().Interface(), vSrc.Field(i).Interface())
+ if err := Do(vDst.Elem().Field(i).Addr().Interface(), vSrc.Field(i).Interface()); err != nil {
75
+ return err
76
+ }
77
}
78
79
// Skip kinds that are not supported
0 commit comments