]> Cypherpunks repositories - gostls13.git/commit
reflect: MethodByName
authorRob Pike <r@golang.org>
Wed, 29 Jun 2011 03:11:49 +0000 (13:11 +1000)
committerRob Pike <r@golang.org>
Wed, 29 Jun 2011 03:11:49 +0000 (13:11 +1000)
commit22484e226290c45bb4ff3d85ac5ac9f9818ae5b3
treec39597866aeea97cfa9830331c0f2dff6873be04
parent161deaa85c4ed97f16fe3905d6de5ad3be24b13a
reflect: MethodByName
It's more common to ask for methods by name than by index, so might
as well make it easy to do so.

R=rsc
CC=golang-dev
https://golang.org/cl/4639083
src/pkg/reflect/all_test.go
src/pkg/reflect/type.go
src/pkg/reflect/value.go