]> Cypherpunks repositories - gostls13.git/commit
reflect: add InterfaceValue.Get to enable setting of an interface
authorRob Pike <r@golang.org>
Wed, 20 Oct 2010 04:25:28 +0000 (21:25 -0700)
committerRob Pike <r@golang.org>
Wed, 20 Oct 2010 04:25:28 +0000 (21:25 -0700)
commit97f3a80d9319a644da91c8d49b3fd788bee185c0
tree3cd8df56a3e264efbfaf8f5a4799527587eca8c4
parent321f0c7fe2078b244a7c11e1bde79b2d348b120f
reflect: add InterfaceValue.Get to enable setting of an interface
value (through unsafe means) without having a reflect.Type
of type *interface{} (pointer to interface).  This is needed to make
gob able to handle interface values by a method analogous to
the way it handles maps.

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