Remix.run Logo
guessmyname 2 hours ago

Brace for a wave of drive-by pull-requests swapping google/uuid [1] out for the now-standard uuid package [2].

Kubernetes project will be the first one [3] I guarantee it.

[1] https://pkg.go.dev/github.com/google/uuid

[2] https://go.dev/pkg/uuid

[3] https://github.com/kubernetes/kubernetes/blob/2220c3853a2402...

[4] https://github.com/google/uuid/issues/221

iaaan an hour ago | parent | next [-]

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

dabber21 2 hours ago | parent | prev [-]

will 'go fix' take care of this?