5 ms·
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 stru
by skrtskrt 7y ago
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?