stretchr/objx

Consider making `Value` just a type of `interface{}`

matryer opened this issue · 5 comments

Consider making `Value` just a type of `interface{}`

We can't do this as you cannot define methods on an interface{}

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?