From ccb8735ba2ec75457b9885382d8e56325134a50a Mon Sep 17 00:00:00 2001 From: Andrew Bonventre Date: Tue, 4 Dec 2018 16:22:26 -0500 Subject: [PATCH] doc/go1.12: add some package release notes Change-Id: I845eab3c98a3d472c71310de4e0475045eb59d4e Reviewed-on: https://go-review.googlesource.com/c/152619 Reviewed-by: Ian Lance Taylor --- doc/go1.12.html | 51 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index 9908829d44..f452d136c0 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -171,17 +171,20 @@ for { -
bytes, strings
+
bytes

- TODO: https://golang.org/cl/137855: add ReplaceAll + The new function ReplaceAll returns a copy of + a byte slice with all non-overlapping instances of a value replaced by another.

- TODO: https://golang.org/cl/145098: fix Reader.UnreadRune returning without error on a zero Reader + A pointer to a zero-value Reader is now + functionally equivalent to NewReader(nil). + Prior to Go 1.12, the former could not be used as a substitute for the latter in all cases.

-
+
cmd,runtime
@@ -214,7 +217,9 @@ for {
database/sql

- TODO: https://golang.org/cl/145738: add support for returning cursors to client + A query cursor can now be obtained by passing a + *Rows + value to the Row.Scan method.

@@ -222,19 +227,34 @@ for {
expvar

- TODO: https://golang.org/cl/139537: add Map.Delete + The new Delete method allows + for deletion of key/value pairs from a Map.

fmt
-

- TODO: https://golang.org/cl/129777: print values for map keys with non-reflexive equality +

+ Maps are now printed in key-sorted order to ease testing. The ordering rules are: +

    +
  • When applicable, nil compares low +
  • ints, floats, and strings order by < +
  • NaN compares less than non-NaN floats +
  • bool compares false before true +
  • Complex compares real, then imaginary +
  • Pointers compare by machine address +
  • Channel values compare by machine address +
  • Structs compare each field in turn +
  • Arrays compare each element in turn +
  • Interface values compare first by reflect.Type describing the concrete type + and then by concrete value as described in the previous rules. +

-

- TODO: https://golang.org/cl/142737: print maps in key-sorted order +

+ When printing maps, non-reflexive key values like NaN were previously + displayed as <nil>. As of this release, the correct values are printed.

@@ -457,6 +477,17 @@ for {
strings
+

+ The new function ReplaceAll returns a copy of + a string with all non-overlapping instances of a value replaced by another. +

+ +

+ A pointer to a zero-value Reader is now + functionally equivalent to NewReader(nil). + Prior to Go 1.12, the former could not be used as a substitute for the latter in all cases. +

+

The new Builder.Cap method returns the capacity of the builder's underlying byte slice.

-- 2.50.0