2013-05-24 14:34:50 -06:00
|
|
|
This file collects notes about what has changed since Go 1.1
|
|
|
|
and should be mentioned in the Go 1.2 release notes.
|
|
|
|
During the Go 1.2 release process it will be necessary to convert
|
|
|
|
it to HTML, similar to go1.1.html, but for now it is a text file,
|
|
|
|
to make the process of keeping it up-to-date more lightweight.
|
|
|
|
|
|
|
|
Please keep the descriptions to a single line, starting with the
|
|
|
|
package or cmd/xxx directory name, and ending in a CL number.
|
|
|
|
Please keep the list sorted (as in sort.Strings of the lines).
|
|
|
|
|
2013-08-13 07:21:33 -06:00
|
|
|
Performance:
|
2013-08-15 02:31:18 -06:00
|
|
|
compress/bzip2: faster decompression by 30% (CL 9915043).
|
|
|
|
crypto/des: 5x faster encoding/decoding (CL 11874043, 12072045).
|
2013-08-14 15:56:31 -06:00
|
|
|
encoding/json: faster encoding (CL 9129044).
|
2013-08-13 07:21:33 -06:00
|
|
|
net: improve windows performance by up to 30% (CL 8670044).
|
2013-08-20 18:53:17 -06:00
|
|
|
net: improve performance on BSD by up to 30% (CL 8264043, 12927048, 13080043).
|
2013-08-13 07:21:33 -06:00
|
|
|
|
2013-08-20 16:37:32 -06:00
|
|
|
Breaking change:
|
|
|
|
archive/tar,archive/zip: fix os.FileInfo implementation to provide base name only (CL 13118043).
|
|
|
|
|
2013-05-29 13:03:52 -06:00
|
|
|
cmd/5a: removed support for R9/R10 (use m/g instead) (CL 9840043).
|
2013-08-09 20:25:49 -06:00
|
|
|
cmd/5l: add MOVBS, MOVHS etc for sub-word moves (CL 12682043).
|
2013-08-21 01:45:35 -06:00
|
|
|
cmd/5l: support for external linking for linux/arm (CL 12871044).
|
2013-06-02 13:09:47 -06:00
|
|
|
cmd/cgo, cmd/go: support including C++ code with cgo (CL 8248043).
|
2013-08-15 18:30:31 -06:00
|
|
|
cmd/gc: three-index slicing to set cap as well as length (CL 10743046).
|
2013-08-09 17:48:43 -06:00
|
|
|
cmd/gc: make missing package error fatal (CL 12677043).
|
2013-06-27 10:20:02 -06:00
|
|
|
cmd/go: test coverage (CL 10413044).
|
2013-08-14 16:13:38 -06:00
|
|
|
cmd/go: add -t flag to 'go get' to download test dependencies (CL 12566046).
|
2013-08-15 18:35:22 -06:00
|
|
|
cmd/go: delete 'go doc' (CL 12974043).
|
2013-05-29 13:03:52 -06:00
|
|
|
|
2013-08-14 15:56:31 -06:00
|
|
|
archive/zip: add File.DataOffset accessor (CL 12784045).
|
2013-08-12 21:39:45 -06:00
|
|
|
bufio: add Reset methods to Reader and Writer (CL 12603049).
|
2013-08-09 20:25:49 -06:00
|
|
|
compress/bzip2: support concatenated files (CL 12387044).
|
2013-08-30 18:39:58 -06:00
|
|
|
compress/flate: add Reset method on Writer (CL 12265043).
|
|
|
|
compress/gzip: add Reset method on Writer (CL 13435043).
|
2013-08-08 10:57:31 -06:00
|
|
|
container/heap: added Fix (CL 12265043).
|
|
|
|
container/list: added MoveBefore and MoveAfter (CL 12021044).
|
2013-08-09 20:25:49 -06:00
|
|
|
crypto/cipher: AES-GCM mode (CL 12375043).
|
2013-06-27 10:20:02 -06:00
|
|
|
crypto/md5: Sum function to simplify hashing (CL10624044).
|
|
|
|
crypto/sha1: Sum function to simplify hashing (CL 10571043).
|
|
|
|
crypto/sha256: Sum256 and Sum224 functions to simplify hashing (CL 10629043).
|
|
|
|
crypto/sha512: Sum512 and Sum384 functions to simplify hashing (CL 10630043).
|
2013-09-03 14:19:41 -06:00
|
|
|
crypto/x509: add support for reading and writing arbitrary extensions (CL 12056043).
|
|
|
|
crypto/tls: add support for TLS 1.1, 1.2 and AES-GCM. (CL 7872043, 10762044 and 13249044).
|
2013-08-30 18:39:58 -06:00
|
|
|
database/sql: add SetMaxOpenConns method on DB (CL 10726044).
|
2013-08-14 13:37:23 -06:00
|
|
|
encoding: new package defining generic encoding interfaces (CL 12541051).
|
|
|
|
encoding/csv: always allow trailing commas (CL 12294043).
|
|
|
|
encoding/gob: support generic encoding interfaces (CL 12681044).
|
2013-07-12 15:37:10 -06:00
|
|
|
encoding/json: accept but correct invalid UTF-8 in Marshal (CL 11211045).
|
2013-08-11 19:28:25 -06:00
|
|
|
encoding/json: always escape ampersands (CL 12708044).
|
2013-08-14 13:37:23 -06:00
|
|
|
encoding/json: support generic encoding interfaces (CL 12703043).
|
2013-08-09 17:48:43 -06:00
|
|
|
encoding/xml: allow attributes stored in pointers to be marshaled (CL 8653047).
|
2013-08-14 13:37:23 -06:00
|
|
|
encoding/xml: add Marshaler, MarshalerAttr interfaces (CL 12919043).
|
|
|
|
encoding/xml: add Unmarshaler, UnmarshalerAttr interfaces (CL 12556043).
|
|
|
|
encoding/xml: support generic encoding interfaces (CL 12751045).
|
2013-06-27 16:30:45 -06:00
|
|
|
flag: add Getter interface (CL 10472043).
|
2013-08-07 20:40:09 -06:00
|
|
|
flag: export commandLine (now CommandLine) (CL 12587043).
|
fmt.Printf: introduce notation for random access to arguments.
This text is added to doc.go:
Explicit argument indexes:
In Printf, Sprintf, and Fprintf, the default behavior is for each
formatting verb to format successive arguments passed in the call.
However, the notation [n] immediately before the verb indicates that the
nth one-indexed argument is to be formatted instead. The same notation
before a '*' for a width or precision selects the argument index holding
the value. After processing a bracketed expression [n], arguments n+1,
n+2, etc. will be processed unless otherwise directed.
For example,
fmt.Sprintf("%[2]d %[1]d\n", 11, 22)
will yield "22, 11", while
fmt.Sprintf("%[3]*[2].*[1]f", 12.0, 2, 6),
equivalent to
fmt.Sprintf("%6.2f", 12.0),
will yield " 12.00". Because an explicit index affects subsequent verbs,
this notation can be used to print the same values multiple times
by resetting the index for the first argument to be repeated:
fmt.Sprintf("%d %d %#[1]x %#x", 16, 17)
will yield "16 17 0x10 0x11".
The notation chosen differs from that in C, but I believe it's easier to read
and to remember (we're indexing the arguments), and compatibility with
C's printf was never a strong goal anyway.
While we're here, change the word "field" to "arg" or "argument" in the
code; it was being misused and was confusing.
R=rsc, bradfitz, rogpeppe, minux.ma, peter.armitage
CC=golang-dev
https://golang.org/cl/9680043
2013-05-24 16:49:26 -06:00
|
|
|
fmt: indexed access to arguments in Printf etc. (CL 9680043).
|
2013-06-02 13:09:47 -06:00
|
|
|
go/build: support including C++ code with cgo (CL 8248043).
|
2013-08-09 20:25:49 -06:00
|
|
|
go/build: add Package.AllTags (CL 12703044).
|
2013-07-23 20:41:52 -06:00
|
|
|
image/draw: added Drawer, FloydSteinberg and the op.Draw method (CL 10977043).
|
|
|
|
image/draw: added Quantizer type (CL 11148043).
|
|
|
|
image/gif: added Encode and EncodeAll (CL 10896043).
|
2013-05-24 14:34:50 -06:00
|
|
|
io: Copy prioritizes WriterTo over ReaderFrom (CL 9462044).
|
2013-06-10 12:55:16 -06:00
|
|
|
net: new build tag netgo for building a pure Go net package (CL 7100050).
|
2013-08-14 15:56:31 -06:00
|
|
|
net/http: don't allow sending invalid cookie lines (CL 12204043).
|
2013-08-09 20:25:49 -06:00
|
|
|
net/http: allow ReadResponse with nil *Request parameter (CL 9821043).
|
2013-08-14 15:56:31 -06:00
|
|
|
net/http: allow responses to HEAD requests, detect type and length (CL 12583043).
|
2013-08-14 13:37:23 -06:00
|
|
|
runtime: relax constraint on finalizer func in SetFinalizer (CL 12895043).
|
2013-08-05 14:06:24 -06:00
|
|
|
runtime: preemption of goroutines at function entry (CL 12371043).
|
2013-07-02 19:46:09 -06:00
|
|
|
sort: new Stable function provides stable sort (CL 9612044).
|
2013-08-09 17:48:43 -06:00
|
|
|
strings: add IndexByte, for consistency with bytes package (CL 12214044).
|
2013-08-13 07:21:33 -06:00
|
|
|
sync/atomic: add Swap functions (CL 12670045).
|
2013-07-11 14:34:54 -06:00
|
|
|
syscall: implemented Sendfile for Darwin, added Syscall9 for Darwin/amd64 (CL 10980043).
|
2013-05-30 10:41:20 -06:00
|
|
|
testing: AllocsPerRun is now quantized to an integer (the type is still float64) (CL 9837049).
|
2013-08-15 23:38:18 -06:00
|
|
|
testing: add TB interface (intersection of T and B's methods) (CL 12962043).
|
2013-08-20 20:55:09 -06:00
|
|
|
text/template: add comparison functions (CL 13091045).
|
2013-08-26 22:33:05 -06:00
|
|
|
text/template: dereference pointer values when evaluating args escape funcs (CL 13257043).
|
2013-08-28 18:09:23 -06:00
|
|
|
text/template: allow {{else if ... }} to simplify if chains (CL 13327043).
|
2013-07-31 15:33:34 -06:00
|
|
|
time: Allow Parse and Format to handle time zone offsets with seconds (CL 8132044)
|
2013-08-09 20:25:49 -06:00
|
|
|
time: patterns require non-lowercase letter to follow Mon, Jan etc (CL 12448044).
|
2013-07-23 18:54:33 -06:00
|
|
|
unicode: add In, a nicer-to-use but equivalent version of IsOneOf (CL 11672044).
|