bug fixed
This commit is contained in:
parent
7f6463e46e
commit
a01eeeddbc
|
@ -159,7 +159,7 @@ func isStructZero(v reflect.Value) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if !isZero(field.Interface()) {
|
if field.CanInterface() && !isZero(field.Interface()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue