Skip to content

feat: add Compare function#163

Merged
bormanp merged 2 commits intogoogle:masterfrom
it512:cmp
Jul 1, 2024
Merged

feat: add Compare function#163
bormanp merged 2 commits intogoogle:masterfrom
it512:cmp

Conversation

@it512
Copy link
Copy Markdown
Contributor

@it512 it512 commented Jun 30, 2024

@it512 it512 requested a review from a team as a code owner June 30, 2024 14:57
Copy link
Copy Markdown
Contributor

@bormanp bormanp left a comment

Choose a reason for hiding this comment

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

Over all it is fine. Just fix up the comment to match the other packages.

util.go Outdated
return (b1 << 4) | b2, b1 != 255 && b2 != 255
}

// Compare compare two uuids
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

// Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.

Copy link
Copy Markdown
Contributor Author

@it512 it512 Jul 1, 2024

Choose a reason for hiding this comment

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

ok !
thank you!

@bormanp bormanp merged commit e8d82d3 into google:master Jul 1, 2024
@it512 it512 deleted the cmp branch July 2, 2024 05:46
tkarrass pushed a commit to tkarrass/uuid that referenced this pull request Sep 11, 2024
* feat: add Compare function

* fix comment
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.

2 participants