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

Add default codecs for most reflect.Kind types

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.14
    • Affects Version/s: 0.0.10
    • Component/s: BSON
    • Labels:
      None

      The v1 Encoder and Decoder types do not have a way to handle encoding and decoding to known base kinds. If a user implements a type on top of an int64, the Encoder will be able to encode the value but the Decoder will not be able to decode the value.

      Update the Registry type to have a third internal registry that handles default Codec}}s for a {{reflect.Kind. This registry will replace the default struct, array/slice, and map Codec typess. Additionally, the registry should only return the default map Codec if the map's key type is a string.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: