Reflect4 Proxies — Better !!link!!

type Service interface GetUser(id int) string

func (p *FieldProxy) Set(value interface{}) error if !p.val.CanSet() return errors.New("field not settable") reflect4 proxies better

Calling CallMethod by name every time is slow. Fix: Map method name + signature to a pre-resolved handler. type Service interface GetUser(id int) string func (p