News for hackers. Stuff that matters.
Re:I Want Off Mr. Golang's Wild Ride by skrtskrt on Friday February 28, 2020 @01:56PM (#22445284)
I'm not sure, I kind of like this?

Personally I would never create different UUID types for each DB struct, and have never seen that done.

    type DogId struct { uuid.UUID }
is type composition (Sorry if I'm not using the right term there). Isn't this exactly how you're supposed to do what you're trying to do in Go?

There are no comments on this comment yet.