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

Audit the primitive package for encoding.Text(Un)Marshaler impls

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • JSON & ExtJSON
    • None

    Description

      GODRIVER-2119 brought up the point that marshaling from and unmarshaling to instances of map[primitive.ObjectID]string causes an error because primitive.ObjectID does not implement encoding.TextMarshaler nor encoding.TextUnmarshaler for JSON.

      We should audit the primitive package to ensure that all types implement these functions.

      Attachments

        Activity

          People

            Unassigned Unassigned
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: