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 @@
+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. +
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.
+net: LookupNS, IPConn.ReadMsgIP, IPConn.WriteMsgIP, UDPConn.ReadMsgUDP, UDPConn.WriteMsgUDP, UnixConn.CloseRead, UnixConn.CloseWrite
+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.
net: ListenUnixgram, LookupNS, IPConn.ReadMsgIP, IPConn.WriteMsgIP, UDPConn.ReadMsgUDP, UDPConn.WriteMsgUDP, UnixConn.CloseRead, UnixConn.CloseWrite
-os.FileMode.IsRegular makes it easy to ask if a file is a plain file.