From 4d2766e9944e2524ece4a1c0e30dd777227aa174 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Sun, 31 Jul 2011 15:29:10 -0700 Subject: [PATCH] doc: document release.r59 R=golang-dev, dsymonds, r, r CC=golang-dev https://golang.org/cl/4835044 --- doc/devel/release.html | 107 +++++++++++++++++++++++++++++++++++++++++ doc/devel/weekly.html | 2 +- 2 files changed, 108 insertions(+), 1 deletion(-) diff --git a/doc/devel/release.html b/doc/devel/release.html index e1a1cabe5a5..feb433f1468 100644 --- a/doc/devel/release.html +++ b/doc/devel/release.html @@ -14,6 +14,113 @@ hg pull hg update release.rNN +

r59 (released 2011/08/01)

+ +

+The r59 release corresponds to +weekly.2011-07-07. +This section highlights the most significant changes in this release. +For a more detailed summary, see the +weekly release notes. +For complete information, see the +Mercurial change list. +

+ +

Language

+ +

+This release includes a language change that restricts the use of +goto. In essence, a goto statement outside a block +cannot jump to a label inside that block. Your code may require changes if it +uses goto. +See this +changeset for how the new rule affected the Go tree. +

+ +

Packages

+ +

+As usual, gofix will handle the bulk of the rewrites +necessary for these changes to package APIs. +

+ +

+Package http has a new +FileSystem interface that provides access +to files. The FileServer helper now takes a +FileSystem argument instead of an explicit file system root. By +implementing your own FileSystem you can use the +FileServer to serve arbitrary data. +

+ +

+Package os's ErrorString type has been +hidden. Most uses of os.ErrorString can be replaced with +os.NewError. +

+ +

+Package reflect supports a new struct tag scheme +that enables sharing of struct tags between multiple packages. +In this scheme, the tags must be of the form: +

+
+	`key:"value" key2:"value2"`
+
+

+The StructField type's Tag field now +has type StructTag, which has a +Get method. Clients of json and +xml will need to be updated. Code that says +

+
+	type T struct {
+		X int "name"
+	}
+
+

+should become +

+
+	type T struct {
+		X int `json:"name"`  // or `xml:"name"`
+	}
+
+

+Use govet to identify struct tags that need to be +changed to use the new syntax. +

+ +

+Package sort's IntArray type has been +renamed to IntSlice, and similarly for +Float64Slice and +StringSlice. +

+ +

+Package strings's Split function has +itself been split into Split and +SplitN. +SplitN is the same as the old Split. +The new Split is equivalent to SplitN with a final +argument of -1. +

+ +Package image/draw's +Draw function now takes an additional +argument, a compositing operator. +If in doubt, use draw.Over. +

+ +

Tools

+ +

+Goinstall now installs packages and commands from +arbitrary remote repositories (not just Google Code, Github, and so on). +See the goinstall documentation for details. +

+

r58 (released 2011/06/29)

diff --git a/doc/devel/weekly.html b/doc/devel/weekly.html index 3ee0247b186..bbb52b06ba3 100644 --- a/doc/devel/weekly.html +++ b/doc/devel/weekly.html @@ -179,7 +179,7 @@ Other changes: parse and encode SCM_RIGHTS and SCM_CREDENTIALS (thanks Albert Strasheim). -

2011-07-07

+

2011-07-07 (base for r59)

 This weekly snapshot includes changes to the strings, http, reflect, json, and