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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 0.0.2
    • Affects Version/s: 0.0.1
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Samuel Rossi (Inactive)
              Reporter:
              roger peppe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: