OLD | NEW |
1 <!-- Weekly Snapshot History --> | 1 <!-- Weekly Snapshot History --> |
2 | 2 |
3 <p>This page summarizes the changes between tagged weekly snapshots of Go. | 3 <p>This page summarizes the changes between tagged weekly snapshots of Go. |
4 For full details, see the <a href="http://code.google.com/p/go/source/list">Merc
urial change log</a>.</p> | 4 For full details, see the <a href="http://code.google.com/p/go/source/list">Merc
urial change log</a>.</p> |
5 | 5 |
6 <p>Weekly snapshots occur often and may not be stable. | 6 <p>Weekly snapshots occur often and may not be stable. |
7 If stability of API and code is more important than having the | 7 If stability of API and code is more important than having the |
8 latest features, use the <a href="release.html">official releases</a> instead.</
p> | 8 latest features, use the <a href="release.html">official releases</a> instead.</
p> |
9 | 9 |
10 <p>To update to a specific snapshot, use:</p> | 10 <p>To update to a specific snapshot, use:</p> |
11 | 11 |
12 <pre> | 12 <pre> |
13 hg pull | 13 hg pull |
14 hg update weekly.<i>YYYY-MM-DD</i> | 14 hg update weekly.<i>YYYY-MM-DD</i> |
15 </pre> | 15 </pre> |
16 | 16 |
| 17 <h2 id="2011-05-22">2011-05-22</h2> |
| 18 |
| 19 <pre> |
| 20 This release includes changes to the http package that will require changes to |
| 21 client code. |
| 22 |
| 23 The finalURL return value of the Client.Get method has been removed. |
| 24 This value is now accessible via the new Request field on http.Response. |
| 25 For example, this code: |
| 26 |
| 27 res, finalURL, err := http.Get(...) |
| 28 |
| 29 should be rewritten as: |
| 30 |
| 31 res, err := http.Get(...) |
| 32 if err != nil { |
| 33 // ... |
| 34 } |
| 35 finalURL := res.Request.URL.String() |
| 36 |
| 37 Uses of http.Get that assign the finalURL value to _ can be rewritten |
| 38 automatically with gofix. |
| 39 |
| 40 This release also includes an optimization to the append function that makes it |
| 41 between 2 and 5 times faster in typical use cases. |
| 42 |
| 43 Other changes: |
| 44 * 5a, 6a, 8a, cc: remove old environment variables. |
| 45 * 5c, 5g: fix build with too-smart gcc. |
| 46 * 5l, 8l: add ELF symbol table to binary. |
| 47 * 5l: delete pre-ARMv4 instruction implementations, other fixes. |
| 48 * 6l, 8l: emit windows dwarf sections like other platforms (thanks Alex Brainman
). |
| 49 * 6l: fix emit windows dwarf sections (thanks Wei Guangjing). |
| 50 * 8g: fix conversion from float to uint64 (thanks Anthony Martin). |
| 51 * Make.cmd: create TARGDIR if necessary (thanks Gustavo Niemeyer). |
| 52 * asn1: add big support. |
| 53 * big: add Int methods to act on numbered bits (thanks Roger Peppe), |
| 54 better support for string conversions, |
| 55 support %v and # modifier, better handling of unknown formats. |
| 56 * cgi: export RequestFromMap (thanks Evan Shaw), |
| 57 set Request.TLS and Request.RemoteAddr for children. |
| 58 * cgo: use packed struct to fix Windows behavior. |
| 59 * codereview: add release branch support, |
| 60 fetch metadata using JSON API, not XML scraping, |
| 61 handle 'null as missing field' in rietveld json. |
| 62 * compress/lzw: silently drop implied codes that are too large. |
| 63 * compress/zlib: actually use provided dictionary in NewWriterDict |
| 64 * crypto/openpgp: add key generation support, |
| 65 change PublicKey.Serialize to include the header. |
| 66 * crypto/rand: add utility functions for number generation (thanks Anthony Marti
n). |
| 67 * crypto/tls: export the verified chains. |
| 68 * crypto/x509/crl: add package. |
| 69 * crypto/x509: export raw SubjectPublicKeyInfo, |
| 70 support DSA public keys in X.509 certs, |
| 71 support parsing and verifying DSA signatures (thanks Jonathan Allie). |
| 72 * doc/roadmap: put "App Engine support" under "Done". |
| 73 * doc: add I/O 2011 talks to talks/, docs.html, and front page. |
| 74 * effective go: explain about values/pointers in String() example, |
| 75 update to new Open signature. |
| 76 * exp/draw: fast paths for drawing a YCbCr or an NRGBA onto an RGBA. |
| 77 * filepath: make EvalSymlinks work on Windows (thanks Alex Brainman). |
| 78 * flag: allow distinct sets of flags. |
| 79 * gc: fix type switch error message for invalid cases (thanks Lorenzo Stoakes), |
| 80 fix unsafe.Sizeof, |
| 81 preserve original expression for errors. |
| 82 * go/ast, go/doc, godoc: consider struct fields and interface methods when filte
ring ASTs. |
| 83 * go/ast: consider anonymous fields and set Incomplete bit when filtering ASTs, |
| 84 properly maintain map of package global imports. |
| 85 * go/doc, godoc: when filtering for godoc, don't remove elements of a declaratio
n. |
| 86 * go/parser: accept parenthesized receive operations in select statements, |
| 87 always introduce an ast.Object when declaring an identifier. |
| 88 * go/printer, gofmt: fix alignment of "=" in const/var declarations, |
| 89 fix formatting of expression lists (missing blank). |
| 90 * go/printer: added simple performance benchmark, |
| 91 make tests follow syntactic restrictions, |
| 92 more accurate comment for incomplete structs/interfaces, |
| 93 * go/token: faster FileSet.Position implementation. |
| 94 * go/types: type checker API + testing infrastructure. |
| 95 * godoc: added -index flag to enable/disable search index, |
| 96 if there is no search box, don't run the respective JS code. |
| 97 * gofmt: update test.sh (exclude a file w/ incorrect syntax). |
| 98 * html: parse empty, unquoted, and single-quoted attribute values. |
| 99 * http/cgi: correctly set request Content-Type (thanks Evan Shaw), |
| 100 pass down environment variables for IRIX and Solaris. |
| 101 * http/pprof: fix POST reading bug. |
| 102 * http/spdy: new incomplete package (thanks Ross Light). |
| 103 * http: Client.Do should follow redirects for GET and HEAD, |
| 104 add Header.Write method (thanks Evan Shaw), |
| 105 add Request.SetBasicAuth method, |
| 106 add Transport.ProxySelector, |
| 107 add http.SetCookie(ResponseWriter, *Cookie), |
| 108 don't Clean query string in relative redirects, |
| 109 fix FormFile nil pointer dereference on missing multipart form, |
| 110 fix racy test with a simpler version, |
| 111 fix two Transport gzip+persist crashes, |
| 112 include Host header in requests, |
| 113 make HEAD client request follow redirects (thanks Eivind Uggedal). |
| 114 update cookie doc to reference new RFC 6265, |
| 115 write cookies according to RFC 6265 (thanks Christian Himpel). |
| 116 * image/bmp: implement a BMP decoder. |
| 117 * image/gif: new package provides a GIF decoder. |
| 118 * image/jpeg: decode grayscale images, not just color images. |
| 119 optimizations and tweaks. |
| 120 * image/png: encode paletted images with alpha channel (thanks Dmitry Chestnykh)
, |
| 121 speed up opaque RGBA encoding. |
| 122 * image/tiff: implement a decoder (thanks Benny Siegert). |
| 123 * image: add type-specific Set methods and use them when decoding PNG, |
| 124 make AlphaColor.Set conform to usual signature (thanks Roger Peppe), |
| 125 png & jpeg encoding benchmarks. |
| 126 * ld: do not emit reference to dynamic library named "", |
| 127 fix alignment of rodata section on Plan 9 (thanks Anthony Martin), |
| 128 make ELF binaries with no shared library dependencies static binaries. |
| 129 * make.bash: remove old bash version of gotest on Windows (thanks Alex Brainman)
. |
| 130 * make: add nuke target for C commands and libs (thanks Anthony Martin). |
| 131 * mime/multipart: add FileName accessor on Part, |
| 132 add Writer, |
| 133 return an error on Reader EOF, not (nil, nil). |
| 134 * misc/cgo/test: run tests. |
| 135 * misc/emacs: use UTF-8 when invoking gofmt as a subprocess (thanks Sameer Ajman
i). |
| 136 * misc/vim: new Vim indentation script. |
| 137 * net, http: add and make use of IP address scope identification API (thanks Mik
io Hara). |
| 138 * net: default to 127.0.0.1, not localhost, in TestICMP, |
| 139 don't crash on unexpected DNS SRV responses, |
| 140 enable SO_REUSEPORT on BSD variants (thanks Mikio Hara), |
| 141 protocol family adaptive address family selection (thanks Mikio Hara), |
| 142 re-enable wildcard listening (thanks Mikio Hara), |
| 143 sort records returned by LookupSRV (thanks Gary Burd). |
| 144 * os: make Readdir & Readdirnames return os.EOF at end, |
| 145 make Setenv update C environment variables. |
| 146 * reflect: allow unexported key in Value.MapIndex. |
| 147 * runtime, sync/atomic: fix arm cas. |
| 148 * runtime: add newline to "finalizer already set" error (thanks Albert Strasheim
), |
| 149 handle out-of-threads on Linux gracefully (thanks Albert Strasheim), |
| 150 fix function args not checked warning on ARM (thanks Dave Cheney), |
| 151 make StackSystem part of StackGuard (thanks Alexey Borzenkov), |
| 152 maybe fix Windows build broken by cgo setenv CL. |
| 153 * spec: clarify semantics of integer division, |
| 154 clarify semantics of range clause, |
| 155 fix error in production syntax, |
| 156 narrow syntax for expression and select statements, |
| 157 newlines cannot be used inside a char or "" string literal, |
| 158 restricted expressions may still be parenthesized. |
| 159 * strings: make Reader.Read use copy instead of an explicit loop. |
| 160 * syscall: add Windows file mapping functions and constants (thanks Evan Shaw), |
| 161 add IPv6 scope zone ID support (thanks Mikio Hara), |
| 162 add netlink support for linux/386, linux/amd64, linux/arm (thanks Mikio
Hara), |
| 163 add Sendfile, |
| 164 adjust freebsd syscalls.master URL properly (thanks Mikio Hara), |
| 165 change Overlapped.HEvent type, it is a handle (thanks Alex Brainman). |
| 166 * syslog: fix skipping of net tests (thanks Gustavo Niemeyer). |
| 167 * template: support string, int and float literals (thanks Gustavo Niemeyer). |
| 168 * xml: fix reflect error. |
| 169 </pre> |
| 170 |
17 <h2 id="2011-04-27">2011-04-27 (<a href="release.html#r57">base for r57</a>)</h2
> | 171 <h2 id="2011-04-27">2011-04-27 (<a href="release.html#r57">base for r57</a>)</h2
> |
18 | 172 |
19 <pre> | 173 <pre> |
20 This release includes revisions to the reflect package to make it more | 174 This release includes revisions to the reflect package to make it more |
21 efficient, after the last weekly’s major API update. If your code uses reflect | 175 efficient, after the last weekly’s major API update. If your code uses reflect |
22 it may require further changes, not all of which can be made automatically by | 176 it may require further changes, not all of which can be made automatically by |
23 gofix. For the full details of the change, see | 177 gofix. For the full details of the change, see |
24 http://codereview.appspot.com/4435042 | 178 http://codereview.appspot.com/4435042 |
25 Also, the Typeof and NewValue functions have been renamed to TypeOf and ValueOf. | 179 Also, the Typeof and NewValue functions have been renamed to TypeOf and ValueOf. |
26 | 180 |
(...skipping 2908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2935 global channel lock is gone.· | 3089 global channel lock is gone.· |
2936 * sync: RWMutex now allows concurrent readers (thanks Péter Szabó)· | 3090 * sync: RWMutex now allows concurrent readers (thanks Péter Szabó)· |
2937 * template: can use maps as data (thanks James Meneghello)· | 3091 * template: can use maps as data (thanks James Meneghello)· |
2938 * unicode: updated to Unicode 5.2.· | 3092 * unicode: updated to Unicode 5.2.· |
2939 * websocket: new package (thanks Fumitoshi Ukai)· | 3093 * websocket: new package (thanks Fumitoshi Ukai)· |
2940 * xgb: preliminary X Go Bindings (thanks Tor Andersson)· | 3094 * xgb: preliminary X Go Bindings (thanks Tor Andersson)· |
2941 * xml: fixed crash (thanks Vish Subramanian)· | 3095 * xml: fixed crash (thanks Vish Subramanian)· |
2942 * misc: bbedit config (thanks Anthony Starks),· | 3096 * misc: bbedit config (thanks Anthony Starks),· |
2943 kate config (thanks Evan Shaw)· | 3097 kate config (thanks Evan Shaw)· |
2944 </pre> | 3098 </pre> |
OLD | NEW |