Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-242

Document the valid struct tags for bson.Encoder and bson.Decoder

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.0.2
    • Affects Version/s: 0.0.1
    • Component/s: BSON
    • None

      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.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            rogpeppe roger peppe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: