google / uuid

Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
BSD 3-Clause "New" or "Revised" License
5.24k stars 363 forks source link

Equals method #100

Open oGabrielArruda opened 2 years ago

oGabrielArruda commented 2 years ago

Does an "Equals(uuid1,uuid2)" method actually exists? It's not so fast comparing uuid's by parsing two values in string and then comparing then by '=='.

gcmsg commented 2 years ago

Just use uuid1 == uuid2 to compare. image