[GODRIVER-242] Document the valid struct tags for bson.Encoder and bson.Decoder Created: 13/Feb/18 Updated: 28/Oct/23 Resolved: 05/Mar/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 | ||
| Epic Link: | GODRIVER Alpha 2 UX |
| Description |
|
The bson documentation says of the `Encoder` and `Decoder` types: > These types will use reflection and evaluate struct tags unless the provided types implements the Marshaler or Unmarshaler interfaces. However the struct tags that are understood do not appear to be documented anywhere, something that's crucial to being able to use these types properly. |
| Comments |
| Comment by Githook User [ 05/Mar/18 ] |
|
Author: {'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}Message: Change-Id: Ib33a1ea80a5d68d0299b0bc82b081b9956bbc264 |
| Comment by Samuel Rossi (Inactive) [ 05/Mar/18 ] |
|
Code review url: https://review.gerrithub.io/c/402606/ |