Merge remote-tracking branch 'upstream/master' into master
am: 9e75985c0d
Change-Id: I44211fd3048da1b65af591654cfe87fdeebb322c
This commit is contained in:
commit
428ebae61a
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ func CopyProperties(dstValue, srcValue reflect.Value) {
|
|||
|
||||
for i, field := range typeFields(typ) {
|
||||
if field.PkgPath != "" {
|
||||
// The field is not exported so just skip it.
|
||||
continue
|
||||
panic(fmt.Errorf("can't copy a private field %q", field.Name))
|
||||
}
|
||||
|
||||
srcFieldValue := srcValue.Field(i)
|
||||
|
|
Loading…
Reference in a new issue