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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Dylan Kozicki
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: