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

Write full implementation of the bson.Element type

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

      Add tests for the bson.Element type and implement the WriteTo method.

      Consolidate this type into ReaderElement and rename ReaderElement to Element.

      For methods that return a document, add two methods, one that returns a Reader and another that returns a Document. Determine if getting a Document from a Reader's Element should panic or return a mutable Document from the underlying bytes.

      Switch calls to binary.LittleEndian.Uint32 to use the readi32 method.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: