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

Add a Reader constructor for elements

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Add a constructor to the bson.Constructor and bson.ArrayConstructor types that takes a bson.Reader and creates an *Element or a *Value from it.

      Because the bson.Reader type is directly implemented on top of []byte, users can directly pass a []byte into the method without having to cast it first.

            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: