From: Rob Pike Date: Tue, 26 Mar 2013 00:41:12 +0000 (-0700) Subject: doc/go1.1.html: introduction X-Git-Tag: go1.1rc2~336 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4529c047b852772eb380499926c1c4e1c42da625;p=gostls13.git doc/go1.1.html: introduction R=golang-dev, adg, bradfitz CC=golang-dev https://golang.org/cl/7696045 --- diff --git a/doc/go1.1.html b/doc/go1.1.html index e8606b7065..a5ea59c97a 100644 --- a/doc/go1.1.html +++ b/doc/go1.1.html @@ -6,9 +6,41 @@

Introduction to Go 1.1

-TODO - - overview - - link back to Go 1 and also Go 1 Compatibility docs. +

+The release of Go version 1 (Go 1 or Go 1.0 for short) +in March of 2012 introduced a new period +of stability in the Go language and libraries. +That stability has helped nourish a growing community of Go users +and systems around the world. +Several "point" releases since +then—1.0.1, 1.0.2, and 1.0.3—have been issued. +These point releases fixed known bugs but made +no non-critical changes to the implementation. +

+ +

+This new release, Go 1.1, keeps the promise +of compatibility but adds a couple of significant +(backwards-compatible, of course) language changes, has a long list +of (again, compatible) library changes, and +includes major work on the implementation of the compilers, +libraries, and run-time. +The focus is on performance. +Benchmarking is an inexact science at best, but we see significant, +sometimes dramatic speedups for many of our test programs. +We trust that many of our users' programs will also see improvements +just by updating their Go installation and recompiling. +

+ +

+This document summarizes the changes between Go 1 and Go 1.1. +Very little if any code will need modification to run with Go 1.1, +although a couple of rare error cases surface with this release +and need to be addressed if they arise. +Details appear below; see the discussion of +64-bit ints and Unicode literals +in particular. +

Changes to the language

@@ -62,7 +94,7 @@ a function literal closing over w:
 func (p []byte) (n int, err error) {
-	return w.Write(n, err)
+	return w.Write(p)
 }
 
@@ -75,7 +107,7 @@ is equivalent to a function with an extra first argument, a receiver of type
 func (w *bufio.Writer, p []byte) (n int, err error) {
-	return w.Write(n, err)
+	return w.Write(p)
 }
 
@@ -707,6 +739,10 @@ clearly a mistake in Go 1.0. Since this API change fixes a bug, it is permitted by the Go 1 compatibility rules. +
  • TODO: +net: LookupNS, IPConn.ReadMsgIP, IPConn.WriteMsgIP, UDPConn.ReadMsgUDP, UDPConn.WriteMsgUDP, UnixConn.CloseRead, UnixConn.CloseWrite +
  • +
  • The net package includes a new function, DialOpt, to supply options to @@ -759,10 +795,6 @@ has two new functions, which do ASCII-only trimming of leading and trailing spaces.
  • -
  • TODO: -net: ListenUnixgram, LookupNS, IPConn.ReadMsgIP, IPConn.WriteMsgIP, UDPConn.ReadMsgUDP, UDPConn.WriteMsgUDP, UnixConn.CloseRead, UnixConn.CloseWrite -
  • -
  • The new method os.FileMode.IsRegular makes it easy to ask if a file is a plain file.