From 81484cf6263461057251bbda825f2c3dc4cdcd09 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 14 Oct 2021 21:08:11 -0700 Subject: [PATCH] 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 --- doc/go1.18.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index a5b47fa261899..f4d097d06bc35 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -127,12 +127,25 @@

Minor changes to the library

+
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,