]> Cypherpunks repositories - gostls13.git/commit
reflect: add Value.UnsafePointer
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 18 Sep 2021 03:32:22 +0000 (10:32 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 18 Oct 2021 16:33:42 +0000 (16:33 +0000)
commit4d550727f8b85e9f8866f22c8a02b8f56fa64159
treec02e4c18d4a825e3d727cdda1c0444d672b90d69
parent543a513304c35d42b162790a6e70191aac68225c
reflect: add Value.UnsafePointer

Allowing eliminates a class of possible misuse of unsafe.Pointer, and
allow callers to migrate from Value.Addr and Value.Pointer, thus they
can be now deprecated.

Fixes #40592

Change-Id: I798e507c748922cac5cc1c1971c1b2cc7095a068
Reviewed-on: https://go-review.googlesource.com/c/go/+/350691
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/all_test.go
src/reflect/deepequal.go
src/reflect/set_test.go
src/reflect/type.go
src/reflect/value.go