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

Implement encoding.Text(Un)Marshaler for primitive.ObjectID

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • BSON
    • None
    • Not Needed

    Description

      In order to be able to use `primitive.ObjectID` as a map key, and have it marshal correctly into json, it needs to implement the https://pkg.go.dev/encoding?utm_source=godoc#TextUnmarshaler] interface, we use maps like these heavily in our product.

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            dkozicki@scoir.com Dylan Kozicki
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: