Re:Decorators in Go using embedded structs
by whateveracct on Wednesday October 23, 2019 @02:17PM
(#21337290)
Sometimes you need this though. For instance, if you do a type alias on a UUID, it will fail to marshal to SQL. But if you do a singleton embedded struct, it will work fine. I'm not gonna waste my time writing Scan and Value every time I newtype
[ Parent
| on HN ]
There are no comments on this comment yet.