From 6c200017bf0ad9987453d5c265e5a3063ad72dc5 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Mon, 18 Oct 2021 23:54:02 +0700 Subject: [PATCH] doc: document new reflect.UnsafePointer function Updates #40592 Change-Id: If66629e47ca9859128ee3ad8fb584e022d7a6982 Reviewed-on: https://go-review.googlesource.com/c/go/+/356255 Trust: Cuong Manh Le Run-TryBot: Cuong Manh Le Reviewed-by: Keith Randall TryBot-Result: Go Bot --- doc/go1.18.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/go1.18.html b/doc/go1.18.html index d95e55e1ad..087a06c280 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -175,6 +175,16 @@ Do not send CLs removing the interior tags from such phrases. do fewer allocations.

+
+

+ The new + Value.UnsafePointer + method returns the Value's value as an unsafe.Pointer. + This allows callers to migrate from Value.UnsafeAddr + and Value.Pointer + to eliminate the need to perform uintptr to unsafe.Pointer conversions at the callsite (as unsafe.Pointer rules require). +

+
syscall
-- 2.50.0