[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: |
|
||||||||
| 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: Change-Id: Iee2ed3fd40084745f99228a3b3fe13392092fb56 |
| Comment by Samuel Rossi (Inactive) [ 21/Feb/18 ] |
|
Code review url: https://review.gerrithub.io/c/400867/ |