From: Cuong Manh Le
Date: Mon, 18 Oct 2021 16:54:02 +0000 (+0700)
Subject: doc: document new reflect.UnsafePointer function
X-Git-Tag: go1.18beta1~796
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c200017bf0ad9987453d5c265e5a3063ad72dc5;p=gostls13.git
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
---
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