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-12-06">2011-12-06</h2> |
| 18 |
| 19 <pre> |
| 20 This snapshot includes language changes and changes to the strconv and go/doc |
| 21 packages. The package changes require changes to client code. |
| 22 The language changes are backwards-compatible. |
| 23 |
| 24 Type elision in arrays, slices, or maps of composite literals has been |
| 25 extended to include pointers to composite literals. Code like this |
| 26 var t = []&T{&T{}, &T{}} |
| 27 may now be written as |
| 28 var t = []&T{{}, {}} |
| 29 You can use gofmt -s to simplify such code. |
| 30 |
| 31 The strconv package has been given a more idiomatic and efficient interface. |
| 32 Client code can be updated with gofix. See the docs for the details: |
| 33 http://weekly.golang.org/pkg/strconv/ |
| 34 |
| 35 The go/doc package's ToHTML function now takes a []byte argument instead of a |
| 36 string. |
| 37 |
| 38 Other changes: |
| 39 * crypto/aes: eliminate some bounds checking and truncation (thanks Rémy Oudomph
eng). |
| 40 * crypto/x509: if a parent cert has a raw subject, use it. |
| 41 * doc: we don't cast, we convert. |
| 42 * encoding/gob: don't send type info for unexported fields. |
| 43 * exp/ssh: allow for msgUserAuthBanner during authentication (thanks Gustav Paul
). |
| 44 * fmt: benchmark floating point, |
| 45 only use Stringer or Error for strings. |
| 46 * gc: changes in export format in preparation of inlining, |
| 47 disallow map/func equality via interface comparison, |
| 48 use gofmt spacing when printing map type. |
| 49 * go/doc: exclude lines ending in ':' from possible headings. |
| 50 * gobuilder: -commit mode for packages, |
| 51 cripple -package mode temporarily, |
| 52 use new dashboard protocol. |
| 53 * godoc: improved output of examples in html (thanks Volker Dobler). |
| 54 * gofmt: handle &T in composite literal simplify. |
| 55 * goinstall: honour -install=false flag when -make=true. |
| 56 * hash: rewrite comment on Hash.Sum method. |
| 57 * html: more parser improvements (thanks Andrew Balholm). |
| 58 * image: avoid func comparison during ColorModel comparison. |
| 59 * math: add special-cases comments to Sinh and Tanh (thanks Charles L. Dorian). |
| 60 * misc/dashboard: further implementation work. |
| 61 * net, syscall: remove BindToDevice from UDPConn, IPConn (thanks Mikio Hara). |
| 62 * net/mail: correctly compare parsed times in the test. |
| 63 * os/exec: make LookPath always search CWD under Windows (thanks Benny Siegert). |
| 64 * runtime: prep for type-specific algorithms. |
| 65 * strconv: 34% to 63% faster conversions. |
| 66 </pre> |
| 67 |
17 <h2 id="2011-12-02">2011-12-02</h2> | 68 <h2 id="2011-12-02">2011-12-02</h2> |
18 | 69 |
19 <pre> | 70 <pre> |
20 This weekly snapshot includes changes to the hash package and a gofix for the | 71 This weekly snapshot includes changes to the hash package and a gofix for the |
21 time and os.FileInfo changes in the last snapshot. | 72 time and os.FileInfo changes in the last snapshot. |
22 | 73 |
23 The hash.Hash's Sum method has been given a []byte argument, | 74 The hash.Hash's Sum method has been given a []byte argument, |
24 permitting the user to append the hash to an existing byte slice. | 75 permitting the user to append the hash to an existing byte slice. |
25 Existing code that uses Sum can pass nil as the argument. | 76 Existing code that uses Sum can pass nil as the argument. |
26 Gofix will make this change automatically. | 77 Gofix will make this change automatically. |
(...skipping 4719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4746 global channel lock is gone.· | 4797 global channel lock is gone.· |
4747 * sync: RWMutex now allows concurrent readers (thanks Péter Szabó)· | 4798 * sync: RWMutex now allows concurrent readers (thanks Péter Szabó)· |
4748 * template: can use maps as data (thanks James Meneghello)· | 4799 * template: can use maps as data (thanks James Meneghello)· |
4749 * unicode: updated to Unicode 5.2.· | 4800 * unicode: updated to Unicode 5.2.· |
4750 * websocket: new package (thanks Fumitoshi Ukai)· | 4801 * websocket: new package (thanks Fumitoshi Ukai)· |
4751 * xgb: preliminary X Go Bindings (thanks Tor Andersson)· | 4802 * xgb: preliminary X Go Bindings (thanks Tor Andersson)· |
4752 * xml: fixed crash (thanks Vish Subramanian)· | 4803 * xml: fixed crash (thanks Vish Subramanian)· |
4753 * misc: bbedit config (thanks Anthony Starks),· | 4804 * misc: bbedit config (thanks Anthony Starks),· |
4754 kate config (thanks Evan Shaw)· | 4805 kate config (thanks Evan Shaw)· |
4755 </pre> | 4806 </pre> |
OLD | NEW |