[go-nuts] Re: Interface help

2016-11-30 Thread sc28
Thanks On Wednesday, November 30, 2016 at 2:05:59 PM UTC-5, parais...@gmail.com wrote: > > Just create a slice of GoNoGoer > > var evals []GoNoGoer > > now you DO NOT need a type assertion like that > > if ok := eval.(GoNoGoer); ok // REMOVE that line > > > Le mercredi 30 novembre 2016 17:59:0

[go-nuts] Re: Interface help

2016-11-30 Thread paraiso . marc
Just create a slice of GoNoGoer var evals []GoNoGoer now you DO NOT need a type assertion like that if ok := eval.(GoNoGoer); ok // REMOVE that line Le mercredi 30 novembre 2016 17:59:07 UTC+1, sc28 a écrit : > > I'm trying to better understand how to properly use interfaces and created >