[GODRIVER-252] Add FromHex function to the objectid package Created: 16/Feb/18  Updated: 28/Oct/23  Resolved: 21/Feb/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: 0.0.1
Fix Version/s: 0.0.2

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER Alpha 2 UX

 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.



 Comments   
Comment by Githook User [ 21/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-252 Add FromHex function to the objectid package

Change-Id: I11e5464c705dd63d1cb287eec4659e7a30f31d41
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/59f03d3dd140d548fd6ea283c65a21ce41f4dfce

Comment by Samuel Rossi (Inactive) [ 21/Feb/18 ]

Code review url: https://review.gerrithub.io/c/400866/

Generated at Thu Feb 08 08:33:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.