-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement TimestampFromV7 #125
Conversation
closes #123
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #125 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 498 513 +15
=========================================
+ Hits 498 513 +15
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you dropwhile! |
Thanks a ton for the contribution @dropwhile :) Gonna merge this and kick it out later today. |
Hi there! Please advise when there will be a new version with this feature? |
// releases until the spec is final. | ||
func TimestampFromV7(u UUID) (Timestamp, error) { | ||
if u.Version() != 7 { | ||
return 0, fmt.Errorf("uuid: %s is version %d, not version 6", u, u.Version()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment here is off by one. Should read
return 0, fmt.Errorf("uuid: %s is version %d, not version 7", u, u.Version())
closes #123