Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I Want Off Mr. Golang's Wild Ride. Parent comment
Personally I would never create different UUID types for each DB struct, and have never seen that done.
type DogId struct { uuid.UUID }
There are no comments on this comment yet.
Personally I would never create different UUID types for each DB struct, and have never seen that done.
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?