Skip to content
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

Merged
merged 1 commit into from
Sep 19, 2023
Merged

implement TimestampFromV7 #125

merged 1 commit into from
Sep 19, 2023

Conversation

dropwhile
Copy link
Contributor

closes #123

uuid.go Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (8318aa5) 100.00% compared to head (5aa1492) 100.00%.

❗ 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     
Files Changed Coverage Δ
uuid.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dylan-bourque dylan-bourque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HenkVanMaanen
Copy link

Thank you dropwhile!

@cameracker
Copy link
Collaborator

Thanks a ton for the contribution @dropwhile :) Gonna merge this and kick it out later today.

@cameracker cameracker merged commit 22c52c2 into gofrs:master Sep 19, 2023
2 checks passed
@dropwhile dropwhile deleted the TimestampFromV7 branch September 21, 2023 01:19
@maxvoronov
Copy link

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())

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing TimestampFromV7
7 participants