-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 0.0.2
-
Component/s: BSON
Currently we attempt to determine if a struct is the zero type in the BSON library by using == which does not work for many types of structs. Instead, create a bson.Zeroer interface with a single method IsZero() bool and use that when determining if a struct is zero. If the struct does not implement this type, then the struct is not zero.
- causes
-
GODRIVER-305 reflection panics when doing equality comparisons
- Closed