News for hackers. Stuff that matters.
Re:Go 1.27 by ungerik on Thursday August 20, 2026 @08:41AM (#49373843)
uuid.UUID is implemented as [16]byte, like most other UUID implementations out there.

If you want to keep your package implementation agnostic, use [16]byte as argument type; that's assignment-compatible with any other type that is such an array underneath:

For an example, see the UUID logging of golog: https://pkg.go.dev/github.com/domonda/golog#Message.UUID

There are no comments on this comment yet.