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

Merge the "primitive" package into the "bson" package

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Major Change
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The separation between the BSON packages mostly exists to prevent import cycles, but otherwise doesn't make a lot of sense to users. Additionally, it makes seemingly simple changes like making the default string or representation for a bson.D (really an alias of primitive.D) extended JSON (also due to import cycles).

      Merge the primitive and package into the main bson package.

      Definition of done:

      • Move all exported symbols from the primitive package to the bson package.
      • Update all dependent code in the Go driver to reference bson instead of primitive.
      • Update all documentation in the Go driver to reference bson instead of primitive.

            Assignee:
            qingyang.hu@mongodb.com Qingyang Hu
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: