Hi, all

I known that method of a struct can be a function with explicit receiver,
like this

type Param struct {
    v int
}

func (this *Param) Call() {
    println(this.v)
}

p := &Param{v:10}
t := p.Call
t()

I wonder how can I get the receiver p from function t through
reflect. Thanks all.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to