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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 0.0.2
    • 0.0.1
    • BSON
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: