Consider making `Value` just a type of `interface{}`
matryer opened this issue · 5 comments
matryer commented
Consider making `Value` just a type of `interface{}`
tylerstillwater commented
We can't do this as you cannot define methods on an interface{}
matryer commented
I mean like this:
type Value interface{}
We can then define methods on Value.
tylerstillwater commented
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.
matryer commented
Really?
type Value interface{}
func (v Value) Something() { ... }
That doesn't work?
matryer commented
... you're right