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