diff --git a/doc/go1.18.html b/doc/go1.18.html index a5b47fa2618999..f4d097d06bc351 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -127,12 +127,25 @@
+ 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.
+