Re: [go-nuts] Return different structs

2016-06-29 Thread Jose Bogarin Solano
Shawn, Thanks, I'll have to see how I can make that interface. Thanks for the guidance. On 29 June 2016 at 13:42, Shawn Milochik wrote: > You're welcome. I think that using empty interfaces isn't the best way to > do it. I meant (but didn't specify) that you should make an interface that > both

Re: [go-nuts] Return different structs

2016-06-30 Thread Jose Bogarin Solano
Simon, Thanks for the information. Ordering the book at this moment. On 30 June 2016 at 02:35, Simon Ritchie wrote: > By the way, this is covered by in Donovan & Kernighan's new book The Go > Programming Language. On pages 197 and 198 of the first edition, they > describe an interface Expr,