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 +
+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.
+
+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.
+
+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.
+
+Goinstall now installs packages and commands from +arbitrary remote repositories (not just Google Code, Github, and so on). +See the goinstall documentation for details. +
+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). -
This weekly snapshot includes changes to the strings, http, reflect, json, and