Re: [go-nuts] Compiler error when using an interface type in a list

2020-06-12 Thread John Sturdy
27;t quite join up. I'll try the solution you suggest. On Thursday, June 11, 2020 at 6:03:59 PM UTC+1, burak serdar wrote: > > On Thu, Jun 11, 2020 at 10:50 AM John Sturdy > wrote: > > > > I've defined an interface type, and a concrete type that I think > imp

[go-nuts] Compiler error when using an interface type in a list

2020-06-11 Thread John Sturdy
I've defined an interface type, and a concrete type that I think implements that interface, but when I use it in a list, I get an error from the compiler that makes it look like it doesn't. Here's my interface type, in anything/anything.go: package anything import ( "fmt"