On Wednesday, February 1, 2017 at 12:56:19 PM UTC-5, jul.s...@gmail.com wrote: > > ... > I'm far from having perfect understanding on the language but I'm starting > to get the differences with a «typical» OO language and how to leverage its > strengths > > I'd have to say this one: https://play.golang.org/p/QQvWxfOiMB seems > interesting even though its a tiny bit more complex to understand so I'll > definitely look into that little pattern with base/derived >
Not long ago, there is a similar discussion, Thinking OO virtual function in Go https://groups.google.com/forum/?hl=en#!searchin/golang-nuts/OO$20|sort:relevance/golang-nuts/f_62HEOIBV4/1XjsV72VBwAJ Many advice in there are much more easier to understand. The useful demos are collected as *Polymorphism-Animal.go* & *Polymorphism-AnimalV1*~*3*.go under https://github.com/suntong/lang/blob/master/lang/Go/src/oo/ with my pick being https://github.com/suntong/lang/blob/master/lang/Go/src/oo/Polymorphism-AnimalVF3.go HTH -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.