Re:Decorators in Go using embedded structs
by yepthatsreality on Wednesday October 23, 2019 @11:13AM
(#21335440)
I think this is also a good primer into golang inheritance and composition, which are major concepts in successful golang programming.
[ Parent
| on HN ]
Re:Decorators in Go using embedded structs
by fabianlindfors on Wednesday October 23, 2019 @11:21AM
(#21335532)
Thank you :) Totally agree, I feel like embedding in Go doesn't get enough credit considering how pleasant it is to use.
Re:Decorators in Go using embedded structs
by inlined on Wednesday October 23, 2019 @11:33AM
(#21335678)
golang doesn’t believe inheritance is necessary. Be careful trying to put a square peg in a round hole.