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

Case sensitivity not working in ToString() #94

Open vbisbest opened 2 years ago

vbisbest commented 2 years ago

According to the UUID spec, the value is case sensitive. The ToString() function in UUID however lower cases everything. Is there a way to maintain case?

mholt commented 2 years ago

Huh? UUIDs are 128-bit numbers, there is no "case" in UUIDs.

The only requirement by spec is that generators output the UUIDs in lowercase:

The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input.