Description

MethodValue returns the Function implementing method sel, building wrapper methods on demand. It returns nil if sel denotes an abstract (interface) method.

Precondition: sel.Kind() == MethodVal.

Thread-safe.

EXCLUSIVE_LOCKS_ACQUIRED(prog.methodsMu)

MethodValue is referenced in 8 repositories

github.com/golang/tools go.googlesource.com/tools github.com/zeebo/tools

...