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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.2.0
    • None
    • BSON
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: