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

Add FromHex function to the objectid package

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.2
    • Affects Version/s: 0.0.1
    • Component/s: None
    • Labels:
      None

      There is currently a method to turn an ObjectID into a hex string, but there is no way to create an ObjectID from a hex string. Implement a FromHex function in the objectid package that will allow a user to provide a hex string and get an ObjectID back or an error if the string is not a valid ObjectID.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: