[GODRIVER-241] Clarify the documentation for the bson package wrt the builder.Builder type Created: 13/Feb/18  Updated: 28/Oct/23  Resolved: 21/Feb/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.1
Fix Version/s: 0.0.2

Type: Bug Priority: Minor - P4
Reporter: roger peppe Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GODRIVER-240 mongo-go-driver/bson: Builder type do... Closed
Epic Link: GODRIVER Alpha 2 UX

 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.



 Comments   
Comment by Githook User [ 21/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-241 Clarify the documentation for Builder type in the bson package

Change-Id: Iee2ed3fd40084745f99228a3b3fe13392092fb56
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/d7dd78cb4562cc5c687281366ebc34d2a211946c

Comment by Samuel Rossi (Inactive) [ 21/Feb/18 ]

Code review url: https://review.gerrithub.io/c/400867/

Generated at Thu Feb 08 08:33:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.