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

Implement Stringer for objectid.ObjectID

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 0.0.2
    • Affects Version/s: None
    • Component/s: BSON
    • None

      I was playing around with the driver and noticed when I print an ObjectID, an array of bytes is printed (ex: [90 150 78 63 112 202 150 82 152 208 62 199]).
      As my first "contribution" I thought I would like to implement the Stringer interface for this type.
      The string method will return a string with something like: ObjectId("5a964bd0939f8aaf8d729fc6").

      I thought I would start with something simple to learn your contribution process.

            Assignee:
            Unassigned Unassigned
            Reporter:
            crhntr Christopher Hunter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: