[GODRIVER-1177] struct supports nil Marshal to int, bool, string etc Created: 02/Jul/19 Updated: 16/Nov/21 Resolved: 08/Jul/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Tiansheng Ren | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
In the bson Marshal structure, when the structure property value is nil, the default value is used. |
| Comments |
| Comment by Esha Bhargava [ 08/Jul/19 ] |
|
same as |
| Comment by Tiansheng Ren [ 04/Jul/19 ] |
github pr struct compatible with null https://github.com/mongodb/mongo-go-driver/pull/166 |