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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: