Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-359

Add bson.Zeroer types for comparing structs

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.4
    • 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.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: