[GODRIVER-165] Write full implementation of the bson.Element type Created: 14/Dec/17 Updated: 16/Jan/18 Resolved: 16/Jan/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 0.0.1 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Samuel Rossi (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | GODRIVER New BSON | ||||||||
| Description |
|
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. |