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

Add FromHex function to the objectid package

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.0.2
    • 0.0.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: