| ▲ | iaaan an hour ago | |
Unfortunately for people SELECTing UUIDs out of a DB directly into a uuid struct, the built-in uuid structs don't implement the necessary interface for that, so you'll have to continue using the google package, or a plain string. | ||
| ▲ | agwa an hour ago | parent | next [-] | |
The database/sql package gained native support[1] for the uuid.UUID type so it will Just Work even without the methods. This probably should have been mentioned in the release notes and database/sql package docs. [1] https://cs.opensource.google/go/go/+/refs/tags/go1.27.0:src/... | ||
| ▲ | reactordev an hour ago | parent | prev | next [-] | |
Oooof… well played go team, well played. | ||
| ▲ | deepsun an hour ago | parent | prev [-] | |
Or just a number (128-bit). | ||