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

Add support for pointers to reflect.Kind types

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

      With GODRIVER-494, new codecs were built for many of the base reflect.Kind types. These handle the base case of a non-pointer to those kinds, but there are circumstances in which a pointer to the kind should be handled. To enable this, the reflect.Kind codecs need to properly handle a pointer to the kind and the decode path needs to handle a pointer to a pointer to the kind.

      A nil pointer maps to a BSON Null and a BSON Null maps to a nil pointer, so this functionality should be added.

      Additionally, all of the BSON primitive type codecs should support pointers to their types.

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

              Created:
              Updated:
              Resolved: