From: Keith Randall Date: Fri, 15 Oct 2021 04:08:11 +0000 (-0700) Subject: doc: document new reflect.SetIter{Key,Value} functions X-Git-Tag: go1.18beta1~889 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=81484cf6263461057251bbda825f2c3dc4cdcd09;p=gostls13.git doc: document new reflect.SetIter{Key,Value} functions Update #48294 Update #47694 Change-Id: I4d4c01be74a9736d89a4ec92318ce29ff7289a0d Reviewed-on: https://go-review.googlesource.com/c/go/+/356050 Trust: Keith Randall Reviewed-by: Joe Tsai --- diff --git a/doc/go1.18.html b/doc/go1.18.html index a5b47fa261..f4d097d06b 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -127,12 +127,25 @@ Do not send CLs removing the interior tags from such phrases. +
reflect
+
+

+ The new + Value.SetIterKey + and Value.SetIterValue + methods set a Value using a map iterator as the source. They are equivalent to + Value.Set(iter.Key()) and Value.Set(iter.Value()) but + do fewer allocations. +

+
+
+
syscall

The new function SyscallN has been introduced for Windows, allowing for calls with arbitrary number - of arguments. As results, + of arguments. As a result, Syscall, Syscall6, Syscall9,