Skip to content

Commit 3e3cda7

Browse files
committed
Merge branch 'hotfix/issue_87'
2 parents 39f197b + a914276 commit 3e3cda7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encoding/encoder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ func isEmptyValue(v reflect.Value) bool {
157157
case reflect.Interface, reflect.Ptr:
158158
return v.IsNil()
159159
}
160-
161-
return v.Interface() == reflect.Zero(v.Type()).Interface()
160+
e
161+
return reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface())
162162
}
163163

164164
func fieldByIndex(v reflect.Value, index []int) reflect.Value {

0 commit comments

Comments
 (0)