From fb69478ecd7a6bec18b0e77665bbaadce4b7f2e8 Mon Sep 17 00:00:00 2001 From: Katie Hockman Date: Tue, 4 Dec 2018 16:23:39 -0500 Subject: [PATCH] doc: 1.12 release notes for go/doc, go/token, and reflect packages Change-Id: I5f0ceeca2025cf19bcf610e150f7b7067fdd7397 Reviewed-on: https://go-review.googlesource.com/c/152637 Reviewed-by: Andrew Bonventre --- doc/go1.12.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index f452d136c08837..c8dd487f65fe72 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -270,7 +270,9 @@

Minor changes to the library

go/doc

- TODO: https://golang.org/cl/140958: add new mode bit PreserveAST to control clearing of data in AST + To address some outstanding issues in cmd/doc, + this package has a new Mode bit, + PreserveAST, which controls whether AST data is cleared.

@@ -278,7 +280,11 @@

Minor changes to the library

go/token

- TODO: https://golang.org/cl/134075: add (*File).LineStart, which returns Pos for a given line + The File type has a new + LineStart field, + which returns the position of the start of a given line. This is especially useful + in programs that occassionally handle non-Go files, such as assembly, but wish to use + the token.Pos mechanism to identify file positions.

@@ -442,7 +448,12 @@

Minor changes to the library

reflect

- TODO: https://golang.org/cl/33572: add Value.MapRange method and MapIter type + A new MapIter type is + an iterator for ranging over a map. This type is exposed through the + Value type's new + MapRange method. + This follows the same iteration semantics as a range statment, with Next + to advance the iterator, and Key/Value to access each entry.