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

Move D family of types from bson package to primitive package

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      Currently the bson.D type family is in the bson package, but this means that no package below the bson package can handle decoding nor encoding into a BSON Document nor bson Array without the user providing additional ValueDecoder or ValueEncoder. Moving the bson.D type family to the primitive package will provide type for BSON Document and Array.

      To ease usage, add a type alias for primitive.D, primitive.M, and primitive.A to the bson package.

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

              Created:
              Updated:
              Resolved: