1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src/pkg/reflect
Russ Cox e46acb091f reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr)
This change makes it possible to take the address of a
struct field or slice element in order to call a method that
requires a pointer receiver.

Existing code that uses the Value.Addr method will have
to change (as gob does in this CL) to call UnsafeAddr instead.

R=r, rog
CC=golang-dev
https://golang.org/cl/4239052
2011-03-03 13:20:17 -05:00
..
all_test.go reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr) 2011-03-03 13:20:17 -05:00
deepequal.go reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr) 2011-03-03 13:20:17 -05:00
Makefile build: no required environment variables 2010-08-18 10:08:49 -04:00
tostring_test.go reflect: add Kind, remove Int8Type, Int8Value, etc. 2010-06-20 12:16:25 -07:00
type.go reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr) 2011-03-03 13:20:17 -05:00
value.go reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr) 2011-03-03 13:20:17 -05:00