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

Extend the Marshal* and Unmarshal* family functions with *WithContext functions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.2.0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      The UnmarshalWithRegistry and MarshalWithRegistry family of functions takes a bsoncodec.Registry currently, but that limits user's ability to configure how other factors during encoding or decoding function, e.g. MinSize, Truncate, etc...

      Add MarshalAppendWithContext, MarshalExtJSONAppedWithContext, MarshalExtJSONWithContext, UnmarshalWithContext, and UnmarshalExtJSONWithContext.

      The Marshal* functions should take a bsoncodec.EncodeContext and the Unmarshal* functions should take a bsoncodec.DecodeContext.

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

              Created:
              Updated:
              Resolved: