On 17 Jul 2014 07:19, "Brendan Tracey" <tracey....@gmail.com> wrote:
>
> I understand why this script [0] is wrong, but I don't understand why the error message is what it is. Shouldn't the error message be something like "Cannot perform a method call on an interface type name"?
>
> [0] http://play.golang.org/p/3cfLeym4m5
>
http://golang.org/ref/spec#Method_expressions
Fooer.Foo is a function that takes a Fooer as it's first parameter.
I understand why this script [0] is wrong, but I don't understand why the error message is what it is. Shouldn't the error message be something like "Cannot perform a method call on an interface type name"?
[0] http://play.golang.org/p/3cfLeym4m5