Closed matryer closed 10 years ago
I mean like this:
type Value interface{}
We can then define methods on Value.
You can't do that. That's what I was saying in my close comment.
Sent from my iPhone
On Sep 22, 2013, at 10:16 AM, Mat Ryer notifications@github.com wrote:
I mean like this:
type Value interface{} We can then define methods on Value.
— Reply to this email directly or view it on GitHub.
Really?
type Value interface{}
func (v Value) Something() { ... }
That doesn't work?
... you're right
We can't do this as you cannot define methods on an interface{}