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

Clarify the documentation for the bson package wrt the builder.Builder type

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 0.0.2
    • 0.0.1
    • BSON
    • None

    Description

      The documentation says:

      > The Builder type is used to create a BSON document. The type only allows the iterative building of a document, so there is no way to verify the contents outside of writing the document. If you have a Builder and need to conditionally add a field, you can write the document to a byte slice and use the Reader type to lookup the desired document, but in this case you should probably use a Document instead.

      Hoever there is no `Builder` type defined anywhere in that package, which is misleading.

      Attachments

        Activity

          People

            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            rogpeppe roger peppe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: