[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: GODRIVER-242 Document the valid struct tags for bson.Encoder and bson.Decoder

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

Comment by Samuel Rossi (Inactive) [ 05/Mar/18 ]

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

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