Home | History | Annotate | Download | only in devel
      1 <!--{
      2 	"Title": "Weekly Snapshot History"
      3 }-->
      4 
      5 <p>This page summarizes the changes between tagged weekly snapshots of Go.
      6 Such snapshots are no longer created. This page remains as a historical reference only.</p>
      7 
      8 <p>For recent information, see the <a href="//golang.org/change">change log</a> and <a href="//groups.google.com/group/golang-dev/">development mailing list</a>.</p>
      9 
     10 <h2 id="2012-03-27">2012-03-27 (<a href="release.html#go1">Go 1</a>)</h2>
     11 
     12 <pre>
     13 * cmd/dist: fix detection of go1 version.
     14 * cmd/go: add missing error check (thanks Evan Shaw),
     15 	allow underscores in tool name (thanks Shenghou Ma),
     16 	bug fixes,
     17 	copy tag_test.go from goinstall,
     18 	explain versions better,
     19 	respect $GOBIN always,
     20 	update for go1 tag format.
     21 * cmd/godoc: canonicalize custom path redirects,
     22 	fix app engine version,
     23 	use virtual filesystem to implement -templates flag.
     24 * codewalk/sharemem.xml: fix references to files.
     25 * crypto/tls: don't select ECC ciphersuites with no mutual curve.
     26 * doc: add JSON-RPC: a tale of interfaces article (thanks Francisco Souza),
     27 	describe the Windows MSI installer as experimental,
     28 	link to Go Project Dashboard from package list,
     29 	update wiki tutorial templates and template discussion,
     30 	and many minor fixes.
     31 * exp/types: generalized GCImporter API.
     32 * go/build: cgoEnabled is not known to cmd/dist anymore (thanks Shenghou Ma),
     33 	fix import check.
     34 * godoc: make 'Overview' section collapsible.
     35 * misc/dist: many fixes and tweaks.
     36 * misc/emacs: fix indentation bug.
     37 * misc/goplay: fix error on IE8 (thanks Yasuhiro Matsumoto).
     38 * net: ignore ECONNABORTED from syscall.Accept (thanks Devon H. O'Dell).
     39 * os: add missing byte to FileMode buffer (thanks Stefan Nilsson).
     40 * path/filepath: convert drive letter to upper case in windows EvalSymlinks (thanks Alex Brainman),
     41 	correct comment in EvalSymlinks (thanks Alex Brainman),
     42 	use windows GetShortPathName api to force GetLongPathName to do its work (thanks Alex Brainman),
     43 	windows drive letter cannot be a digit (thanks Alex Brainman).
     44 * run.bash: compile the codewalks.
     45 * runtime: restore deadlock detection in the simplest case (thanks Rmy Oudompheng),
     46 	work around false negative in deadlock detection.
     47 * text/template: fix typo in package comment.
     48 * windows: installer fixes (thanks Joe Poirier).
     49 </pre>
     50 
     51 <h2 id="2012-03-22">2012-03-22 (Go 1 Release Candidate 2)</h2>
     52 
     53 <pre>
     54 As with last week's snapshot, this snapshot is another Go 1 release candidate.
     55 A notable change in this snapshot are Windows installer fixes.
     56 
     57 Changes in this snapshot:
     58 * 5l, 6l, 8l: fix stack split logic for stacks near default segment size.
     59 * archive/zip: move r.zip off disk, into reader_test.go.
     60 * build: catch API changes during build,
     61 	do more during windows build (thanks Alex Brainman),
     62 	lengthen timeout for the lengthy runtime test (thanks Shenghou Ma),
     63 	unset GOPATH before tests (thanks Shenghou Ma).
     64 * cmd/cgo: add support for function export for gccgo (thanks Rmy Oudompheng),
     65 	fix handling of errno for gccgo.
     66 * cmd/go: add -fno-common by default on Darwin (thanks Shenghou Ma),
     67 	don't add detail to errPrintedOutput,
     68 	fix directory->import path conversion,
     69 	make build errors more visible,
     70 	use .o, not .{5,6,8}, for gccgo created object files,
     71 	work around occasional ETXTBSY running cgo.
     72 * cmd/godoc: add toys, tour button to playground,
     73 	inform users that the playground doesn't work via local godoc,
     74 	style example headings like links,
     75 	use *goroot as base path in zip file,
     76 	use FormatText for formating code in html template,
     77 	use shorter titles for tabs.
     78 * cmd/gofmt: show ascii in usage (thanks Yasuhiro Matsumoto).
     79 * cmd/pack: also recognize '\\' as path separator in filenames (thanks Shenghou Ma).
     80 * crypto/tls: always send a Certificate message if one was requested.
     81 * doc/install: remove reference to "Go Tutorial" (thanks Shenghou Ma).
     82 * doc/play: use []rune instead of []int (thanks Yasuhiro Matsumoto).
     83 * doc: add Go Concurrency Patterns: Timing out, moving on article (thanks Francisco Souza),
     84 	add Go image/draw package article and convert code snippets to Go1,
     85 	add Gobs of data article (thanks Francisco Souza),
     86 	add Godoc: documenting Go code article (thanks Francisco Souza),
     87 	add JSON and Go article (thanks Francisco Souza),
     88 	general update of gccgo installation instructions,
     89 	minor updates to most docs.
     90 * flag: add examples.
     91 * gc: fix struct and array comparisons for new bool rules (thanks Anthony Martin),
     92 	use quoted string format in import error,
     93 	when expanding append inline, preserve arguments.
     94 * go/build: clarify why we exclude files starting with '_' or '.' (thanks Shenghou Ma),
     95 	clearer argument name for Import (src -> srcDir),
     96 	do not report Target for local imports,
     97 	fix match.
     98 * go/printer, gofmt: fix multi-line logic.
     99 * html/template: add Templates and XXXEscape functions,
    100 	fix nil pointer bug,
    101 	fix panic on Clone.
    102 * io/ioutil: fix crash when Stat fails.
    103 * make.bat: fix for old files (thanks Christopher Redden),
    104 	don't show error message if old generated files do not exist (thanks Shenghou Ma),
    105 	properly handle directories with spaces (thanks Alex Brainman).
    106 * misc/cgo/gmp: update for Go 1 (thanks Shenghou Ma).
    107 * misc/dashboard: remove old python package dashboard.
    108 * misc/dist: don't ship cmd/cov or cmd/prof,
    109 	force modes to 0755 or 0644 in tarballs,
    110 	remove exp and old before building.
    111 * misc/vim: restore fileencodings (thanks Yasuhiro Matsumoto).
    112 * net/http: couple more triv.go modernizations,
    113 	ensure triv.go compiles and runs (thanks Robert Hencke).
    114 * net: drop unnecessary type assertions and fix leak in test (thanks Mikio Hara).
    115 * os: IsNotExist() should also consider ERROR_PATH_NOT_FOUND on Windows (thanks Shenghou Ma),
    116 	do not assume syscall.Write will write everything,
    117 	remove document duplication in error predicate functions (thanks Shenghou Ma),
    118 	return some invented data from Stat(DevNull) on windows (thanks Alex Brainman).
    119 * path/filepath: implement Match and Glob on windows (thanks Alex Brainman).
    120 * reflect: document PkgPath, Method, StructField,
    121 	panic if MakeSlice is given bad len/cap arguments.
    122 * run.bat: disable test in test\bench\go1 to fix build (thanks Alex Brainman).
    123 * runtime/cgo: darwin signal masking (thanks Mikio Hara),
    124 	linux signal masking (thanks Mikio Hara).
    125 * runtime: do not handle signals before configuring handler,
    126 	manage stack by ourselves for badcallback on windows/amd64 (thanks Shenghou Ma),
    127 	remove unused goc2c.c (thanks Shenghou Ma).
    128 * sort: add time complexity to doc (thanks Stefan Nilsson),
    129 	fix computation of maxDepth to avoid infinite loop (thanks Stefan Nilsson).
    130 * spec: delete references to unsafe.Reflect,Typeof,Unreflect.
    131 * syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux (thanks Albert Strasheim),
    132 	add a test for passing an fd over a unix socket,
    133 	delete passfd_test.go.
    134 * test: use testlib in a few more cases (thanks Shenghou Ma).
    135 * text/template: fix a couple of parse bugs around identifiers,
    136 	variables do not take arguments.
    137 </pre>
    138 
    139 <h2 id="2012-03-13">2012-03-13 (Go 1 Release Candidate 1)</h2>
    140 
    141 <pre>
    142 This weekly snapshot is very close to what we expect will be the contents of
    143 the Go 1 release. There are still a few minor documentation issues to resolve,
    144 and a handful of bugs that should be addressed before the release, but the vast
    145 majority of Go programs should be completely unaffected by any changes we make
    146 between now and the full release.
    147 
    148 If you're interested in helping us test, eager to try out Go 1, or just
    149 curious, this weekly snapshot is the one to try. We'll issue a new App Engine
    150 Go 1 beta SDK very soon, so if you're an App Engine user you can try it there
    151 too.
    152 
    153 To help us focus on any remaining bugs and avoid introducing new ones, we will
    154 restrict our attention to critical fixes and issues marked Go1-Must in the
    155 issue tracker. Everything non-essential will be held until after the Go 1
    156 release is cut and in the field for a while.
    157 
    158 Changes in this snapshot:
    159 * archive/zip: verify CRC32s in non-streamed files,
    160 	write data descriptor signature for OS X; fix bugs reading it.
    161 * build: build correct cmd/dist matching GOHOSTARCH (thanks Shenghou Ma),
    162 	re-enable some broken tests in run.bash (thanks Shenghou Ma),
    163 	remove some references to Make.inc etc.
    164 	use run.go for running tests.
    165 * builder: use short test for subrepos (thanks Shenghou Ma).
    166 * cgo, runtime: diagnose callback on non-Go thread.
    167 * cmd/api: set compiler for all build contexts,
    168 	work on Windows again, and make gccgo files work a bit more.
    169 * cmd/cgo: document CGO_LDFLAGS and CGO_CFLAGS,
    170 	silence const warnings.
    171 * cmd/dist, cmd/go: move CGO_ENABLED from 'go tool dist env' to 'go env' (thanks Shenghou Ma).
    172 * cmd/dist: fix build for Linux/ARM (thanks Shenghou Ma),
    173 	use correct hg tag for go version (thanks Alex Brainman).
    174 * cmd/fix: add rules for net/http -> net/http/httputil renames.
    175 * cmd/gc: allow ~ in import paths,
    176 	delete old map delete in walk,
    177 	do not confuse unexported methods of same name,
    178 	if $GOROOT_FINAL is set, rewrite file names in object files,
    179 	implement len(array) / cap(array) rule,
    180 	import path cannot start with slash on Windows (thanks Shenghou Ma),
    181 	must not inline panic, recover,
    182 	show duplicate key in error,
    183 	unnamed struct types can have methods.
    184 * cmd/go: add -compiler,
    185 	add env command, use to fix misc/cgo/testso,
    186 	allow go get with arbitrary URLs,
    187 	allow ssh tunnelled bzr, git and svn (thanks Ingo Oeser),
    188 	always provide .exe suffix on windows (thanks Shenghou Ma),
    189 	document import path meta tag discovery in go help remote,
    190 	honor buildflags in run, test (thanks Rmy Oudompheng),
    191 	local import fixes,
    192 	make go get new.code/... work,
    193 	rebuild external test package dependencies,
    194 	respect $GOBIN always,
    195 	support -compiler for go list, fix isStale for gccgo (thanks Rmy Oudompheng).
    196 * cmd/godoc: add support for serving templates.
    197 	fix codewalk handler (thanks Francisco Souza).
    198 	remove extra / in paths (thanks Ugorji Nwoke),
    199 	support $GOPATH, simplify file system code,
    200 	switch on +1 buttons.
    201 * cmd/gofmt: fix race in long test (thanks Mikio Hara).
    202 * codereview: fix for Mercurial 2.1.
    203 * crypto/x509: allow server gated crypto in windows systemVerify (thanks Mikkel Krautz),
    204 	do not forget to free cert context (thanks Alex Brainman),
    205 	don't include empty additional primes in PKCS#1 private key,
    206 	enforce path length constraint,
    207 	new home for root fetchers; build chains using Windows API (thanks Mikkel Krautz).
    208 * csv: clarify what a negative FieldsPerRecord means.
    209 * database/sql: add docs about connection state, pooling,
    210 	ensure Stmts are correctly closed (thanks Gwenael Treguier),
    211 	fix double connection free on Stmt.Query error,
    212 	fix typo bug resulting in double-Prepare.
    213 * database/sql: add ErrBadConn.
    214 * doc/go1: template packages have changed since r60.
    215 * doc/go_mem: init-created goroutine behavior changes for Go 1 (thanks Shenghou Ma).
    216 * doc/gopher: flip frontpage gopher's eyes.
    217 * doc: add "About the go command" article,
    218 	add C? Go? Cgo! article (thanks Francisco Souza),
    219 	add Go's declaration syntax article (thanks Francisco Souza),
    220 	add more gophers,
    221 	add note about import . to Go 1 compatibility notes,
    222 	several doc fixes and improvements,
    223 	update Effective Go init section,
    224 	update progs/run (thanks Shenghou Ma),
    225 	update reference gopher,
    226 	web site tweaks.
    227 * encoding/asn1: handle UTCTime before the year 2000.
    228 * encoding/binary: improve package comment (thanks Stefan Nilsson).
    229 * encoding/gob: fix memory corruption.
    230 * encoding/json: document that nil slice encodes as `null`.
    231 * exp/wingui: moved to code.google.com/p/gowingui.
    232 * expvar: add locking to String, and use RWMutex properly throughout,
    233 	add missing locking in String methods.
    234 * fmt, log: stop using unicode.
    235 * fmt: minor tweak of package doc to show headings in godoc (thanks Volker Dobler).
    236 * go/build, cmd/go: add support for .syso files.
    237 * go/build: add NoGoError,
    238 	add dependency test,
    239 	do not parse .syso files (thanks Alex Brainman).
    240 * go/parser: avoid endless loop in case of internal error,
    241 	better error synchronization.
    242 * go/printer, gofmt: nicer formatting of multi-line returns.
    243 * go/printer: example for Fprint.
    244 * go/scanner: better panic diagnostic.
    245 * go spec: no known implementation differences anymore,
    246 	fix inaccuracy in type identity definition.
    247 * io: better document WriterAt.
    248 * misc/dashboard: remove obsolete package builder code.
    249 * misc/dist: add source archive support,
    250 	add windows installer and zip support,
    251 	minimum target requirement is 10.6 for Darwin (thanks Shenghou Ma).
    252 * misc/emacs: fix extra indentation after comments that end with a period.
    253 * misc/xcode: example install of language spec for Xcode 4.x (thanks Emil Hessman).
    254 * net, net/rpc, reflect, time: document concurrency guarantees.
    255 * net/http: fix crash with Transport.CloseIdleConnections,
    256 	return appropriate errors from ReadRequest.
    257 * net: add skip message to test (thanks Mikio Hara),
    258 	disable use of external listen along with other external network uses,
    259 	do not use reflect for DNS messages (thanks Rmy Oudompheng),
    260 	document ReadMsgUnix, WriteMsgUnix,
    261 	fix TestDialTimeout on windows builder,
    262 	improve server and file tests (thanks Mikio Hara),
    263 	make Dial and Listen behavior consistent across over platforms (thanks Mikio Hara),
    264 	remove dependence on bytes, fmt, strconv,
    265 	silence another epoll print,
    266 	use IANA reserved port to test dial timeout (thanks Mikio Hara).
    267 * os: document FileInfo.Size as system-dependent for irregular files,
    268 	fix SameFile to work for directories on windows (thanks Alex Brainman).
    269 * path/filepath/path_test.go: repair and enable TestAbs.
    270 * path/filepath: disable AbsTest on windows,
    271 	retrieve real file name in windows EvalSymlinks (thanks Alex Brainman).
    272 * runtime/pprof: disable test on Leopard 64-bit.
    273 * runtime: add Compiler,
    274 	fix windows/amd64 exception handler (thanks Alex Brainman),
    275 	inline calls to notok,
    276 	move runtime.write back to C,
    277 	print error on receipt of signal on non-Go thread,
    278 	remove unused runtimesigname and runtimenewError,
    279 	try extending arena size in 32-bit allocator (thanks Rmy Oudompheng),
    280 	wait for main goroutine before setting GOMAXPROCS (thanks Rmy Oudompheng).
    281 * strconv: add table-based isPrint, remove dependence on bytes, unicode, and strings.
    282 * sync/atomic: disable store and load test on a single processor machine (thanks Mikio Hara).
    283 * syscall: fix mkall.sh, mksyscall_linux.pl, and regen for Linux/ARM (thanks Shenghou Ma).
    284 * test/run: use all available cores on ARM system (thanks Shenghou Ma).
    285 * test: actually run them on windows (thanks Alex Brainman),
    286 	add inherited interface test to ddd.go,
    287 	enable method expression tests in ddd.go,
    288 	invoke go command in run.go,
    289 	match gccgo error messages for bug388.go,
    290 	skip . files in directory.
    291 * testing: do not print 'no tests' when there are examples.
    292 * time: during short test, do not bother tickers take longer than expected (thanks Shenghou Ma),
    293 	mention receiver in Unix, UnixNano docs.
    294 * unicode/utf16: remove dependence on package unicode.
    295 * unicode/utf8: remove dependence on unicode.
    296 * windows: make background of gopher icon transparent (thanks Volker Dobler).
    297 </pre>
    298 
    299 <h2 id="2012-03-04">2012-03-04</h2>
    300 
    301 <pre>
    302 This snapshot includes a major re-design of the go/build package.
    303 Its FindTree, ScanDir, Tree, and DirInfo types have been replaced with the
    304 Import and Package types. There is no gofix. Code that uses go/build will need
    305 to be updated manually to use the package's new interface.
    306 
    307 Other changes:
    308 * 6a/6l: add IMUL3Q and SHLDL.
    309 * all: remove unused unexported functions and constants (thanks Rmy Oudompheng).
    310 * build: add GO_ prefix to LDFLAGS and GCFLAGS (thanks Gustavo Niemeyer).
    311 * cmd/cc: fix an out of bounds array access (thanks Anthony Martin),
    312 	grow some global arrays.
    313 * cmd/dist: force line-buffering stdout/stderr on Unix (thanks Shenghou Ma),
    314 	recognize CC="ccache clang" as clang.
    315 * cmd/go: avoid repeated include dirs (thanks Rmy Oudompheng),
    316 	fix -I flag for gc command (thanks Gustavo Niemeyer),
    317 	fix verbose command displaying (thanks Gustavo Niemeyer),
    318 	fixes for gccgo (thanks Rmy Oudompheng),
    319 	many fixes,
    320 	test -i should not disable -c (thanks Shenghou Ma).
    321 * cmd/vet: don't give error for Printf("%+5.2e", x) (thanks Shenghou Ma).
    322 * cmd/yacc/units.y: update comment, give better error messages when $GOROOT not set (thanks Shenghou Ma).
    323 * crypto/tls: force OS X target version to 10.6 for API compatibility (thanks Mikkel Krautz).
    324 * crypto/x509: fix typo in Verify documentation (thanks Mikkel Krautz).
    325 * dist: treat CC as one unit (thanks Scott Lawrence).
    326 * doc/go1: add justification discussions to major changes,
    327 	minor corrections and updates.
    328 * doc: describe API changes to go/build,
    329 	elaborate available checks for cmd/vet (thanks Shenghou Ma),
    330 	expand code.html to discuss the go tool in more depth,
    331 	instruct FreeBSD/Linux users to rm the old version first,
    332 	remove Go for C++ Programmers,
    333 	remove roadmap document,
    334 	remove tutorial,
    335 	update codelab/wiki to Go 1 (thanks Shenghou Ma),
    336 * encoding/gob: fix "// +build" comment for debug.go (thanks Shenghou Ma),
    337 	more hardening for lengths of input strings.
    338 * encoding/json: drop MarshalForHTML; gofix calls to Marshal,
    339 	escape output from Marshalers.
    340 * encoding/xml: fix anonymous field Unmarshal example (thanks Gustavo Niemeyer),
    341 	fix xml test tag usage (thanks Gustavo Niemeyer).
    342 * gc: disallow absolute import paths,
    343 	fix escape analysis + inlining + closure bug,
    344 	fix string comparisons for new bool rules (thanks Anthony Martin),
    345 	reject import paths containing special characters (thanks Anthony Martin).
    346 * go/ast: examples for ast.Print, ast.Inspect.
    347 * go/doc, godoc: fix range of type declarations.
    348 * go/parser: check import path restrictions,
    349 	expand test cases for bad import.
    350 * go/printer, gofmt: improved comment placement.
    351 * go/printer: fix printing of variadic function calls (thanks Anthony Martin),
    352 	fix test for new import path restrictions (thanks Anthony Martin),
    353 	replace multiline logic,
    354 	simpler exprList code, more tests.
    355 * godoc: add Examples link to top-level index,
    356 	bring back highlighting, selections, and alerts,
    357 	consistent placement of documentation sections,
    358 	don't show directories w/o packages in flat dir mode,
    359 	don't show testdata directories,
    360 	fix codewalks.
    361 * gotype: provide -comments flag.
    362 * html/template: make doctype check case-insensitive (thanks Scott Lawrence),
    363 	use correct method signature in introduction example (thanks Mike Rosset).
    364 * io: document that I/O is not necessarily safe for parallel access.
    365 * ld: allow more -L options (thanks Shenghou Ma),
    366 	fix alignment of rodata section.
    367 * misc: add zsh completion for go tool (thanks Rmy Oudompheng).
    368 * misc/bash: Completion for go tool (thanks Yissakhar Z. Beck).
    369 * misc/dashboard: fix bug in UI template,
    370 	record install counts for external packages.
    371 * misc/dist: implement binary distribution scripts in go.
    372 * misc/gobuilder: send commit time in RFC3339 format.
    373 * misc/xcode: move Xcode3 specific files into sub directory.
    374 * net/http/cgi: add an empty response test,
    375 	fix empty response.
    376 * net/http/httptest: make Server.Close wait for outstanding requests to finish.
    377 * net/http/httputil: fix DumpRequestOut on https URLs,
    378 	make https DumpRequestOut less racy.
    379 * net/http: add overlooked 418 status code, per RFC 2324,
    380 	fix ProxyFromEnvironment bug, docs, add tests,
    381 	make a test more paranoid & reliable on Windows.
    382 * net/rpc: silence read error on closing connection.
    383 * net: add stubs for NetBSD (thanks Benny Siegert),
    384 	make -external flag for tests default to true (thanks Mikio Hara),
    385 	reorganize test files (thanks Mikio Hara).
    386 * os: diagnose chdir error during StartProcess,
    387 	implement UserTime/SystemTime on windows (thanks Alex Brainman),
    388 	implement sameFile on windows (thanks Alex Brainman),
    389 	release process handle at the end of windows (*Process).Wait (thanks Alex Brainman),
    390 	sleep 5ms after process has exited on windows (thanks Alex Brainman).
    391 * path/filepath: note that SplitList is different from strings.Split,
    392 	steer people away from HasPrefix.
    393 * reflect: don't panic comparing functions in DeepEqual.
    394 	make Value.Interface return immutable data.
    395 * runtime/pprof: support OS X CPU profiling.
    396 * runtime: add sanity checks to the runtime-gdb.py prettyprinters,
    397 	check for ARM syscall failures (thanks Shenghou Ma),
    398 	darwin and linux signal masking,
    399 	run init on main thread,
    400 	size arena to fit in virtual address space limit.
    401 * spec: allow disallow of \uFFFD in import path,
    402 	apply method sets, embedding to all types, not just named types,
    403 	clarifications around exports, uniqueness of identifiers,
    404 	import path implementation restriction,
    405 	inside functions, variables must be evaluated,
    406 	use the term "lexical token" (rather then "lexical symbol").
    407 * sync: add Once example, remove old WaitGroup example.
    408 * test/bench/shootout: update post-Makefile.
    409 * test: add documentation, misc fixes.
    410 * testing: add -test.example flag to control execution of examples.
    411 * text/template: add example showing use of custom function,
    412 	add examples that use multiple templates,
    413 	fix redefinition bugs.
    414 * time: add a comment about how to use the Duration constants.
    415 </pre>
    416 
    417 <h2 id="2012-02-22">2012-02-22</h2>
    418 
    419 <pre>
    420 This weekly snapshot includes changes to the os and runtime packages.
    421 
    422 This should be the last of the significant incompatible changes before Go 1.
    423 
    424 There are no longer error constants such as EINVAL in the os package, since the
    425 set of values varied with the underlying operating system. There are new
    426 portable functions like IsPermission to test common error properties, plus a
    427 few new error values with more Go-like names, such as ErrPermission and
    428 ErrNoEnv.
    429 
    430 The os.Getenverror function has been removed. To distinguish between a
    431 non-existent environment variable and an empty string, use os.Environ or
    432 syscall.Getenv.
    433 
    434 The Process.Wait method has dropped its option argument and the associated
    435 constants are gone from the package. Also, the function Wait is gone; only the
    436 method of the Process type persists.
    437 
    438 The non-portable Waitmsg type has been replaced with the portable ProcessState.
    439 
    440 Much of the API exported by package runtime has been removed in favor of
    441 functionality provided by other packages. Code using the runtime.Type
    442 interface or its specific concrete type implementations should now use package
    443 reflect.  Code using runtime.Semacquire or runtime.Semrelease should use
    444 channels or the abstractions in package sync.
    445 
    446 The runtime.Alloc, runtime.Free, and runtime.Lookup functions, an unsafe API
    447 created for debugging the memory allocator, have no replacement.
    448 
    449 The runtime.Cgocalls and runtime.Goroutines functions have been renamed to
    450 runtime.NumCgoCall and runtime.NumGoroutine.
    451 
    452 The "go fix" command will update code to accommodate most of these changes.
    453 
    454 Other changes:
    455 * 5c, 6c, 8c, 6g, 8g: correct boundary checking (thanks Shenghou Ma).
    456 * 5g, 6g, 8g: flush modified globals aggressively.
    457 * 8a, 8l: add EMMS instruction (thanks Evan Shaw).
    458 * bufio: don't return errors from good Peeks.
    459 * build: add make.bash --no-clean option,
    460 	improve Windows support.
    461 * builder: reuse existing workspace if possible (thanks Shenghou Ma),
    462 	update for os.Wait changes.
    463 * bytes: document Compare/Equal semantics for nil arguments, and add tests.
    464 * cgo: fix definition of opaque types (thanks Gustavo Niemeyer).
    465 * cmd/api: record return type of functions for variable typecheck (thanks Rmy Oudompheng).
    466 * cmd/cgo: bug fixes.
    467 * cmd/dist: add clang specific -Wno options (thanks Bobby Powers),
    468 	fix install cmd/5g on non-arm system,
    469 	fix pprof permissions (thanks Bobby Powers),
    470 	make dir check in defaulttarg() more robust (thanks Shenghou Ma),
    471 	use correct package target when cross-compiling (thanks Alex Brainman).
    472 * cmd/gc: correctly typecheck expression lists in returns (thanks Rmy Oudompheng),
    473 	don't believe that variables mentioned 256 times are unused (thanks Rmy Oudompheng),
    474 	error on constant shift overflows (thanks Rmy Oudompheng),
    475 	fix comparison of struct with _ field.
    476 	fix error for floating-point constant %,
    477 	new, less strict bool rules.
    478 * cmd/go: add tool -n flag,
    479 	go test -i correctly handle cgo packages (thanks Shenghou Ma).
    480 * codereview: fix submit message for new clone URL (thanks Shenghou Ma).
    481 * database/sql/driver: API cleanups.
    482 * doc: many fixes and adjustments.
    483 * encoding/gob: cache engine for user type, not base type,
    484 	catch internal error when it happens,
    485 	fix mutually recursive slices of structs.
    486 * encoding/json: ignore anonymous fields.
    487 * go/doc: return Examples in name order.
    488 * go/parser: imaginary constants and ! may start an expression.
    489 * go/printer, gofmt: improved comma placement.
    490 * go/printer: don't lose relevant parentheses when rewriting selector expressions.
    491 * godoc: adjust line height in pre blocks,
    492 	don't print spurious suggestion when running "go doc foo",
    493 	fix absolute->relative mapping,
    494 	fix tag mismatch validation errors (thanks Scott Lawrence),
    495 	import example code support,
    496 	support flat directory view again.
    497 * html/template: add Clone and AddParseTree,
    498 	don't indirect past a Stringer,
    499 	minor tweak to docs to improve HTML typography.
    500 * image: add Decode example.
    501 * ld: add NOPTRBSS for large, pointer-free uninitialized data.
    502 * math/rand: Intn etc. should panic if their argument is <= 0.
    503 * misc/dist/windows: distro builder updates (thanks Joe Poirier).
    504 * misc/goplay: remain in work directory, build in temp directory.
    505 * net, os, syscall: delete os.EPLAN9 (thanks Mikio Hara).
    506 * net/http: add optional Server.TLSConfig field.
    507 * net/smtp: use EHLO then HELO.
    508 * net/textproto: accept bad MIME headers as browsers do.
    509 * net/url: regularise receiver names.
    510 * net: make LocalAddr on multicast return group address (thanks Mikio Hara),
    511 	make parseProcNetIGMP more robust (thanks Mikio Hara),
    512 	more selfConnect debugging: panic if ra == nil in internetSocket,
    513 	panic if sockaddrToTCP returns nil incorrectly,
    514 	other miscellaneous fixes.
    515 * path, path/filepath: polish documentation (thanks Rmy Oudompheng).
    516 * pprof: add Profile type.
    517 * runtime: avoid malloc during malloc,
    518 	define NSIG to fix plan 9 build (thanks David du Colombier),
    519 	fix FreeBSD signal handling around thread creation (thanks Devon H. O'Dell),
    520 	goroutine profile, stack dumps,
    521 	implement runtime.osyield on FreeBSD 386, amd64 (thanks Devon H. O'Dell),
    522 	permit default behavior of SIGTSTP, SIGTTIN, SIGTTOU,
    523 	release unused memory to the OS (thanks Sbastien Paolacci),
    524 	remove an obsolete file (thanks Mikio Hara).
    525 * spec: make all comparison results untyped bool,
    526 	refine the wording about variables in type switches,
    527 	struct comparison only compares non-blank fields.
    528 * syscall: Make Pdeathsig type Signal in SysProcAttr on Linux (thanks Albert Strasheim),
    529 	fix bounds check in Error,
    530 	force Windows to always use US English error messages (thanks Shenghou Ma).
    531 * test: migrated to new go-based testing framework.
    532 * text/template: evaluate function fields.
    533 * time: use Go distribution zoneinfo if system copy not found.
    534 </pre>
    535 
    536 <h2 id="2012-02-14">2012-02-14</h2>
    537 
    538 <pre>
    539 This release includes some package changes that require changes to client code.
    540 
    541 The flate, gzip and zlib's NewWriterXxx functions no longer return an error.
    542 The compiler will flag all affected code which must then be updated by hand.
    543 
    544 The os package's Exec and Time functions were removed.  Callers should use
    545 syscall.Exec and time.Now instead. The ShellExpand function was renamed to
    546 ExpandEnv. The NewFile function now takes a uintptr and the *File.Fd method
    547 returns a uintptr.
    548 
    549 The runtime package's Type type and its methods have been removed.
    550 Use the reflect package instead.
    551 
    552 Other changes:
    553 * 8a, 8l: add LFENCE, MFENCE, SFENCE (thanks Darren Elwood).
    554 * all.bat: report error code back to the gobuilder (thanks Alex Brainman).
    555 * archive/zip: hide Write method from *Writer type.
    556 * build: create the correct $GOTOOLDIR,
    557 	get rid of deps.bash (thanks Anthony Martin),
    558 	reject make.bash on Windows.
    559 * builder: set $GOBUILDEXIT for Windows (thanks Alex Brainman),
    560 * bytes: add Reader,
    561 	return error in WriteTo if buffer is not drained.
    562 * cgo: add support for returning errno with gccgo (thanks Rmy Oudompheng).
    563 * cmd/api: follow constant references.
    564 * cmd/cgo: omit //line in -godefs, -cdefs output.
    565 * cmd/dist: fixes (thanks Alex Brainman, Gustavo Niemeyer, Mikio Hara, Shenghou Ma).
    566 * cmd/fix: warn about exp, old, deleted packages.
    567 * cmd/gc: suspend safemode during typecheck of inlined bodies.
    568 * cmd/go: a raft of fixes,
    569 	connect os.Stdin for go run and go tool,
    570 	go get scheme detection (thanks Daniel Krech),
    571 	respect test -timeout flag.
    572 * cmd/vet: warn for construct 'Println(os.Stderr, ...)' (thanks Shenghou Ma).
    573 * compress/gzip: remove dead code (thanks Alex Brainman).
    574 * container/heap: add example.
    575 * dashboard: add gobuilder -fail mode.
    576 * database/sql: more tests,
    577 	remove Into from ScannerInto/ScanInto,
    578 	rename ErrTransactionFinished to ErrTxDone,
    579 	support ErrSkip in Tx.Exec (thanks Andrew Balholm),
    580 	treat pointers as nullable types as with encoding/json (thanks Andrew Pritchard).
    581 * debug/macho: drop terrifyingly monstrous URL from package comment.
    582 * dist: prevent recusive loop on windows when fatal() is called (thanks Daniel Theophanes).
    583 * doc: add App Engine docs to 'learn' and 'reference' pages,
    584 	add playground.js,
    585 	new document about compatibility of releases,
    586 	update install.html for binary distros, add install-source.html.
    587 * effective_go: use new map deletion syntax.
    588 * encoding/binary: add Size, to replace the functionality of the old TotalSize,
    589 	another attempt to describe the type of Read and Write's data,
    590 	slices are allowed; say so.
    591 * encoding/json: document buffering.
    592 * encoding/xml: add support for the omitempty flag (thanks Gustavo Niemeyer).
    593 * exp/norm: merged charinfo and decomposition tables.
    594 * exp/types: use build.FindTree in GcImporter (thanks James Whitehead).
    595 * flate: delete WrongValueError type.
    596 * fmt: diagnose invalid verb applied to pointer,
    597 	scan FALSE correctly.
    598 * gc: bug fixes, better error messages.
    599 * go/doc: handle recursive embedded types (thanks Gary Burd),
    600 	don't lose exported consts/vars with unexported type,
    601 	treat predeclared error interface like an exported type.
    602 * go/printer: implement SourcePos mode.
    603 * godoc: list examples in index,
    604 	new design,
    605 	regard lone examples as "whole file" examples.
    606 * html/template: added more words about examples and doc (thanks Bjorn Tipling).
    607 * log/syslog: return length of data provided by the user, not length of header.
    608 * make.bat: remove double quotes (thanks Alex Brainman).
    609 * math: fix gamma doc, link to OEIS.
    610 * mime: unexport some internal details.
    611 * misc/dist: add binary distribution packaging script for linux,
    612 	new hierarchy for binary distribution packaging scripts.
    613 * net/http: add ServeContent,
    614 	don't spin on temporary accept failure,
    615 	fix client goroutine leak with persistent connections,
    616 	fix reference to URL.RawPath in docs (thanks Bjorn Tipling),
    617 	panic on duplicate registrations,
    618 	use mtime < t+1s to check for unmodified (thanks Hong Ruiqi).
    619 * net: avoid Shutdown during Close,
    620 	avoid TCP self-connect,
    621 	disable TestDialTimeout on Windows,
    622 	disable multicast test on Alpha GNU/Linux,
    623 	disable wild use of SO_REUSEPORT on BSD variants (thanks Mikio Hara),
    624 	enable flags on stream for multicast listeners (thanks Mikio Hara),
    625 	make use of listenerBacklog (thanks Mikio Hara),
    626 	prefer an IPv4 listen if no address given (thanks Mikio Hara).
    627 * os/exec: add Cmd.Waitmsg.
    628 * os/signal: revive this package.
    629 * regexp/syntax: add package and Parse commentary.
    630 * regexp: allow substitutions in Replace, ReplaceString.
    631 * runtime, pprof: add profiling of thread creation.
    632 * runtime, time: accelerate tests in short mode (thanks Rmy Oudompheng).
    633 * runtime: exit early on OABI systems (thanks Shenghou Ma),
    634 	drop to 32 bit malloc if 64 bit will not work,
    635 	fix "SysReserve returned unaligned address" bug on 32-bit systems (thanks Shenghou Ma),
    636 	fix grsec support (thanks Gustavo Niemeyer),
    637 	on 386, fix FP control word on all threads, not just initial thread,
    638 	put lockorder before pollorder in Select memory block,
    639 	use startpanic so that only one thread handles an incoming SIGQUIT.
    640 * spec: add forward links from 'method set' to where it gets used,
    641 	clarify implementation restrictions on untyped floats,
    642 	disallow recursive embedded interfaces,
    643 	method names must be unique,
    644 	send on closed channel counts as "proceeding",
    645 	strings are more slices than arrays.
    646 * strconv: handle very large inputs.
    647 * strings: add Seek and ReadAt methods to Reader.
    648 * sync/atomic: disable hammer pointer tests on wrong size system.
    649 * testing: let runtime catch the panic.
    650 * text/template: refer HTML users to html/template.
    651 * text/template/parse: deep Copy method for nodes.
    652 * time: clean up MarshalJSON, add RFC3339 method,
    653 	use "2006-01-02 15:04:05.999999999 -0700 MST" as String format.
    654 </pre>
    655 
    656 <h2 id="2012-02-07">2012-02-07</h2>
    657 
    658 <pre>
    659 This weekly snapshot includes a re-organization of the Go tools.
    660 
    661 Only the go, godoc, and gofmt tools are installed to $GOROOT/bin (or $GOBIN).
    662 The remainder are installed to $GOROOT/bin/tool.
    663 This puts the lesser-used tools (6g, cgo, govet, etc.) outside the user PATH.
    664 Instead these tools may be called through the go tool with 'go tool command'.
    665 For example, to vet hello.go you would type 'go tool vet hello.go'.
    666 Type 'go tool' see the list of available tools.
    667 
    668 With the move, some tools were given simpler names:
    669 	6cov    -&gt; cov
    670 	6nm     -&gt; nm
    671 	goapi   -&gt; api
    672 	gofix   -&gt; fix
    673 	gopack  -&gt; pack
    674 	gopprof -&gt; pprof
    675 	govet   -&gt; vet
    676 	goyacc  -&gt; yacc
    677 
    678 The os/signal package has been moved to exp/signal.
    679 
    680 A new tool named 'dist' has been introduced to handle building the gc tool
    681 chain and to bootstrap the go tool. The old build scripts and make files
    682 have been removed.
    683 
    684 Other changes:
    685 * 5a, 6a, 8a, cc: check in y.tab.[ch].
    686 * 5l, 6l, 8l, ld: remove memory leaks (thanks Shenghou Ma).
    687 * 5l, 6l, 8l: implement -X flag.
    688 * 5l: make -v option output less nonessential clutter (thanks Shenghou Ma),
    689 	optimize the common case in patch() (thanks Shenghou Ma).
    690 * 8a, 8l: implement support for RDTSC instruction (thanks Shenghou Ma).
    691 * 8g: use uintptr for local pc.
    692 * archive/zip: support full range of FileMode flags (thanks Gustavo Niemeyer).
    693 * bufio: remove special error type, update docs.
    694 * build: move the "-c" flag into HOST_CFLAGS (thanks Anthony Martin),
    695 	remove unnecessary pragmas (thanks Anthony Martin).
    696 * builder: drop recover blocks.
    697 * bytes: API tweaks.
    698 * cgo: accept null pointers in gccgo flavour of C.GoString (thanks Rmy Oudompheng),
    699 	print line numbers in fatal errors when relevant (thanks Rmy Oudompheng).
    700 * cmd/dist: add GOBIN to env's output (thanks Gustavo Niemeyer),
    701 	fix bug in bsubst (thanks Alex Brainman),
    702 	fix build on openbsd (thanks Mikio Hara),
    703 	generate files for package runtime,
    704 	ignore file names beginning with . or _,
    705 	prevent race on VERSION creation (thanks Gustavo Niemeyer).
    706 * cmd/gc: another special (%hhS) case for method names,
    707 	describe debugging flags (thanks Anthony Martin),
    708 	diagnose \ in import path,
    709 	disallow switch _ := v.(type),
    710 	don't print implicit type on struct literal in export,
    711 	fix codegen reordering for expressions involving && and ||,
    712 	use octal escapes in mkopnames (thanks Anthony Martin).
    713 	use original constant expression in error messages (thanks Rmy Oudompheng).
    714 * cmd/go: add support for release tags via git branches (thanks Gustavo Niemeyer),
    715 	build: print import errors when invoked on files (thanks Kyle Lemons),
    716 	clean test directories as they complete,
    717 	fix error message on non-existing tools (thanks Rmy Oudompheng),
    718 	fix handling of gccgo standard library (thanks Rmy Oudompheng),
    719 	fixed panic on `go clean -n` and `go clean -x` (thanks Sanjay Menakuru),
    720 	introduce support for "go build" with gccgo (thanks Rmy Oudompheng),
    721 	make vcs command actually gather output (thanks Roger Peppe),
    722 	pass env CGO_CFLAGS to cgo (thanks Jeff Hodges),
    723 	record location of failed imports for error reporting (thanks Rmy Oudompheng).
    724 * cmd/goapi: expand embedded interfaces.
    725 * cmd/goinstall: remove now that 'go get' works (thanks Gustavo Niemeyer).
    726 * cmd/ld: fix gdbscript (thanks Wei Guangjing).
    727 * cmd/pack: change gopack to pack in error messages.
    728 * codereview: miscellaneous fixes and improvements.
    729 * crypto/elliptic: p224Contract could produce a non-minimal representation.
    730 * crypto/tls: better error message when connecting to SSLv3 servers.
    731 * crypto/x509: use case-insensitive hostname matching.
    732 * dashboard: support for sub-repositories, update to go1beta.
    733 * database/sql: permit scanning into interface{}.
    734 * doc: update go1.html for recent changes.
    735 * encoding/base32: add DecodeString and EncodeToString helper methods,
    736 	ignore new line characters during decode.
    737 * encoding/base64: ignore new line characters during decode.
    738 * encoding/gob: document CommonType.
    739 * encoding/hex: canonicalize error type names.
    740 * encoding/json: call (*T).MarshalJSON for addressable T values.
    741 * encoding/xml: fix decoding of xml.Name with sub-elements (thanks Gustavo Niemeyer),
    742 	fix documentation for Decoder.Skip.
    743 * exp/norm: Added some benchmarks for form-specific performance measurements,
    744 	a few minor changes in prepration for a table format change.
    745 * expvar: revise API.
    746 * fix: add image/{bmp,tiff} to go1pkgrename.
    747 * flag: allow a FlagSet to not write to os.Stderr,
    748 	describe valid input for Duration flags.
    749 * fmt: add test of NaN map keys,
    750 	fix caching bug in Scan.
    751 * go/build: put a space between 'generated by make' and package statement,
    752 	update syslist.go package comment.
    753 * go/doc: fix URL linking in ToHTML (thanks Gary Burd),
    754 	added error, rune to list of predeclared types,
    755 	don't lose factory functions of non-exported types,
    756 	don't show methods of exported anonymous fields,
    757 	enable AllMethods flag (and fix logic).
    758 * go/printer: don't print incorrect programs.
    759 * go/scanner: idiomatic receiver names.
    760 * go/spec: update language on map types.
    761 * go/token: remove dependency on encoding/gob.
    762 * gob: fuzz testing, plus a fix for very large type names.
    763 * gobuilder: use go tool to build and test sub-repositories.
    764 * godoc: add URL mode m=methods,
    765 	diagnostic for empty FS tree,
    766 	fix identifier search,
    767 	fix redirect loop for URL "/",
    768 	provide link to subdirectories, if any,
    769 	sort list of "other packages",
    770 	update metadata in appinit.go.
    771 * gophertool: fix link to the build status dashboard (thanks Jongmin Kim).
    772 * hgignore: add VERSION.cache (thanks Gustavo Niemeyer),
    773 	delete dregs, ignore tmpltohtml.
    774 * html: add package doc.
    775 * image: add package docs, rename s/UnknownFormatError/ErrFormat/ and,
    776 	delete the image.Repeated type,
    777 	remove image/bmp and image/tiff from std.
    778 * io/ioutil: document EOF behavior in ReadFile and ReadAll.
    779 * io: API tweaks.
    780 * libmach: add stubs for Plan 9 (thanks Anthony Martin).
    781 * make.bash: don't remove hgpatch.
    782 * math/big: add raw access to Int bits,
    783 	API and documentation cleanup.
    784 * misc/goplay: use go tool "run" (thanks Olivier Duperray).
    785 * misc/osx: don't set GOROOT or modify profile files,
    786 	update for dist tool, drop image.bash, update readme.
    787 * net, syscall: add IPv4 multicast helpers for windows (thanks Mikio Hara).
    788 * net/http/httputil: fix race in DumpRequestOut,
    789 	preserve query params in reverse proxy.
    790 * net/http: don't set Content-Type header for HEAD requests by default (thanks Patrick Mylund Nielsen),
    791 	fix nil pointer dereference in error case (thanks Volker Dobler),
    792 	close client fd sooner on response read error,
    793 	set cookies in client jar on POST requests (thanks Volker Dobler).
    794 * net/rpc: fix data race on Call.Error.
    795 * net: ListenMulticastUDP to listen concurrently across multiple listeners (thanks Mikio Hara),
    796 	disable normal multicast testing on linux/arm (thanks Mikio Hara),
    797 	fix Plan 9 build (thanks Anthony Martin),
    798 	fix windows build (thanks Alex Brainman),
    799 	move DNSConfigError to a portable file,
    800 	remove types InvalidConnError and UnknownSocketError,
    801 	replace error variable name e, errno with err (thanks Mikio Hara),
    802 	run TestDialTimeout on windows (thanks Alex Brainman),
    803 	update comments to remove redundant "net" prefix (thanks Mikio Hara).
    804 * os/exec: TestExtraFiles - close any leaked file descriptors,
    805 	make sure file is not closed early in leaked fd test.
    806 * os/signal: move to exp/signal.
    807 * os/user: windows implementation (thanks Alex Brainman).
    808 * os: Process.handle use syscall.Handle (thanks Wei Guangjing),
    809 	file windows use syscall.InvalidHandle instead of -1 (thanks Wei Guangjing),
    810 	remove SIGXXX signals variables,
    811 	turn FileStat.Sys into a method on FileInfo (thanks Gustavo Niemeyer).
    812 * path/filepath: repair and simplify the symlink test.
    813 * reflect: add comment about Type.Field allocation,
    814 	test that PtrTo returns types that match program types.
    815 * runtime: add runtime.cputicks() and seed fastrand with it (thanks Damian Gryski),
    816 	delete UpdateMemStats, replace with ReadMemStats(&stats) (thanks Rmy Oudompheng),
    817 	fix float64 hash,
    818 	use GOTRACEBACK to decide whether to show runtime frames,
    819 	use per-map hash seeds (thanks Damian Gryski).
    820 * spec: add number to the fibonacci sequence.
    821 * std: add struct field tags to untagged literals.
    822 * strings: add Fields example.
    823 * syscall: add Timeval.Nano, Timespec.Nano, for conversion to Duration,
    824 	cache environment variables on Plan 9 (thanks Anthony Martin),
    825 	fix // +build comments in types_*.go,
    826 	fix build directive in types_linux.go,
    827 	update bootstrap scripts to sync with new go command (thanks Mikio Hara).
    828 * test: add import test that caused an incorrect gccgo error,
    829 	add test for receiver named _,
    830 	add test of NaN in map,
    831 	add test which crashed gccgo compiler,
    832 	don't use package main for files without a main function,
    833 	fix bug headers,
    834 	float to integer test case,
    835 	make map nan timing test more robust,
    836 	match gccgo error messages,
    837 	test append with two different named types with same element type,
    838 	test method expressions with parameters, and with import,
    839 	test slice beyond len,
    840 	test that x := &lt;-c accepts a general expression.
    841 * testing: capture panics, present them, and mark the test as a failure.
    842 * unicode: document large var blocks and the SpecialCase vars.
    843 * vet: add a check for untagged struct literals.
    844 </pre>
    845 
    846 <h2 id="2012-01-27">2012-01-27</h2>
    847 
    848 <pre>
    849 This weekly snapshot renamed the html package to exp/html. The package will not
    850 be present in the Go 1 distribution, but will be installable from source.
    851 
    852 Error variables in the archive/tar, archive/zip, compress/gzip, compress/zlib,
    853 and crypto/bcrypt packages have been renamed from FooError to ErrFoo. 
    854 There is no gofix, but the compiler will flag code that needs updating.
    855 
    856 This weekly snapshot relocates many packages to sub-repositories of the main 
    857 Go repository. These are the old and new import paths:
    858 
    859 	crypto/bcrypt          code.google.com/p/go.crypto/bcrypt
    860 	crypto/blowfish        code.google.com/p/go.crypto/blowfish
    861 	crypto/cast5           code.google.com/p/go.crypto/cast5
    862 	crypto/md4             code.google.com/p/go.crypto/md4
    863 	crypto/ocsp            code.google.com/p/go.crypto/ocsp
    864 	crypto/openpgp         code.google.com/p/go.crypto/openpgp
    865 	crypto/openpgp/armor   code.google.com/p/go.crypto/openpgp/armor
    866 	crypto/openpgp/elgamal code.google.com/p/go.crypto/openpgp/elgamal
    867 	crypto/openpgp/errors  code.google.com/p/go.crypto/openpgp/errors
    868 	crypto/openpgp/packet  code.google.com/p/go.crypto/openpgp/packet
    869 	crypto/openpgp/s2k     code.google.com/p/go.crypto/openpgp/s2k
    870 	crypto/ripemd160       code.google.com/p/go.crypto/ripemd160
    871 	crypto/twofish         code.google.com/p/go.crypto/twofish
    872 	crypto/xtea            code.google.com/p/go.crypto/xtea
    873 	exp/ssh                code.google.com/p/go.crypto/ssh
    874 	net/dict               code.google.com/p/go.net/dict
    875 	net/websocket          code.google.com/p/go.net/websocket
    876 	exp/spdy               code.google.com/p/go.net/spdy
    877 	encoding/git85         code.google.com/p/go.codereview/git85
    878 	patch                  code.google.com/p/go.codereview/patch
    879 
    880 Gofix will update imports of these packages to use the new import paths.
    881 Installations that depend on these packages will need to install them using a
    882 'go get' command.
    883 
    884 Other changes:
    885 * 6c, 8c: make floating point code NaN-safe.
    886 * 6l, 8l: remove unused macro definition (thanks Shenghou Ma).
    887 * archive/tar: fix race in TestNonSeekable.
    888 * archive/zip: add functions to convert between os.FileInfo & FileHeader.
    889 * build: do not build all C compilers (thanks Shenghou Ma),
    890 	remove code now in subrepositories.
    891 * bytes: remove dead code, complete documentation,
    892 	restore panic on out-of-memory,
    893 	turn buffer size overflows into errors.
    894 * cgo: -cdefs should translate unsafe.Pointer to void * (thanks Shenghou Ma).
    895 * cmd/gc: forgotten recursion on ninit itself in order.c.
    896 * cmd/go: bug fixes, implement go get,
    897 	correctly handle -n and -x flags for 'go run' (thanks Shenghou Ma),
    898 	solve ambiguity of get lp.net/project/foo (thanks Gustavo Niemeyer),
    899 	update doc.go with text generated from the usage strings.
    900 * cmd/goapi: new tool for tracking exported API over time.
    901 * codereview: support for subrepositories.
    902 * compress/flate: fix a typo, improve compression rate by 3-4%,
    903 	increase the length of hash table from 1<<15 to 1<<17. 0%-16% speedup,
    904 	make lazy matching work,
    905 	reduce memory pressure at cost of additional arithmetic operation,
    906 	use append instead of slice+counter.
    907 * crypto: rename some FooError to ErrFoo.
    908 * dashboard: fix -commit for new xml package.
    909 * database/sql: add NullInt64, NullFloat64, NullBool (thanks James P. Cooper),
    910 	convert SQL null values to []byte as nil (thanks James P. Cooper),
    911 	fix Tx.Query (thanks Blake Mizerany).
    912 * doc: expand FAQ on GOMAXPROCS, update to Go 1.
    913 * doc/go1: add encoding/xml and net/url changes (thanks Gustavo Niemeyer),
    914 	add more info about hash and net changes, delete reference to html,
    915 	add flag, runtime, testing, image , mime, filepath.Walk,
    916 	document sub-repositories.
    917 * encoding/binary: document that PutVarint, PutUvarint may panic.
    918 * encoding/varint: deleted WriteXvarint.
    919 * encoding/xml: add docs for ignoring tag (thanks Gustavo Niemeyer),
    920 	bring API closer to other packages (thanks Gustavo Niemeyer),
    921 	improve []byte handling (thanks Gustavo Niemeyer),
    922 	remove Marshaler support (thanks Gustavo Niemeyer),
    923 	support ignoring fields with "-" (thanks Gustavo Niemeyer).
    924 * exp/ebnflint: test spec during 'go test'.
    925 * exp/norm: fixes a subtle bug introduced by change 10087: random offset.
    926 * gc, runtime: handle floating point map keys.
    927 * gc: avoid DOT in error messages,
    928 	do not try to add a key with incorrect type to a hash (thanks Jeff R. Allen),
    929 	fix order of evaluation,
    930 	fix recursion loop in interface comparison,
    931 	handle function calls in arguments to builtin complex operations,
    932 	missed typecheck in subscripting a const string,
    933 	permit unsafe.Pointer for inlined functions,
    934 	softer criteria for inlinability,
    935 	static implements check on typeswitches only applies to concrete case types,
    936 	test case for recursive interface bug.
    937 * go/ast: respect ImportSpec.EndPos (thanks Scott Lawrence).
    938 * go/build: add BuildTags to Context, allow !tag.
    939 * go/doc: rewrite and add lots of tests.
    940 * go/parser: use explicit parser.Mode type.
    941 * go/printer, gofmt: respect line breaks in signatures.
    942 * go/scanner: use explicit scanner.Mode type.
    943 * gob: annotate debug.go so it's not normally built,
    944 	reduce the maximum message size.
    945 * godoc: log node printing error,
    946 	move overview before API TOC,
    947 	update metadata upon launch.
    948 * gofix: add -debug flag for quicker diagnosis of internal errors,
    949 	handle xml.Unmarshal in xmlapi fix (thanks Gustavo Niemeyer),
    950 	update go1pkgrename for subrepositories.
    951 * goyacc: fix indexing bug when yydebug >= 2.
    952 * ld: fix Mach-O code signing for non-cgo binaries (thanks Mikkel Krautz).
    953 * libmach: cross compiling support (thanks Shenghou Ma).
    954 * math/big: assembly versions of bitLen for x86-64, 386, and ARM (thanks David G. Andersen),
    955 	return type of bitLen is an int; use MOVL on amd64 (thanks David G. Andersen),
    956 	add examples for Rat and Int's SetString and Scan methods,
    957 	slight improvement to algorithm used for internal bitLen function (thanks David G. Andersen),
    958 	test both bitLen and bitLen_g.
    959 * net/http: add Request.RequestURI field,
    960 	disabled test for Transport race / deadlock bug,
    961 	fix Transport deadlock (thanks Yoshiyuki Kanno),
    962 	make ParseForm ignore unknown content types (thanks Roger Peppe),
    963 	parse CONNECT requests (thanks Andrew Balholm).
    964 * net/rpc: fix data race in benchmark,
    965 	fix race in TestClientWriteError test,
    966 	log Call reply discard.
    967 * net: Dial, ListenPacket with "ip:protocol" network for raw IP sockets (thanks Mikio Hara),
    968 	actually reset deadline when time is zero,
    969 	consistent OpError message (thanks Mikio Hara),
    970 	fix dialing google test (thanks Mikio Hara),
    971 	make WriteTo fail when UDPConn is already connected (thanks Mikio Hara).
    972 * regexp: remove vestigial Error type.
    973 * runtime: add type algorithms for zero-sized types,
    974 	move NumCPU declaration into debug.go.
    975 * spec: function invocation, panic on *nil.
    976 * syscall: add NOTE_* constants on OS X (thanks Robert Figueiredo).
    977 * test: explicitly use variables to avoid gccgo "not used" error.
    978 * text/template: add example for Template.
    979 </pre>
    980 
    981 <h2 id="2012-01-20">2012-01-20</h2>
    982 
    983 <pre>
    984 This weekly snapshot renamed the exp/sql package to database/sql, and moved
    985 utf8.String from unicode/utf8 to exp/utf8string.
    986 
    987 Package net's SetTimeout methods were changed to SetDeadline.
    988 
    989 Many functions in package os now take a os.FileMode argument instead of a
    990 plain uint32. An os.ModeSticky constant is also now defined.
    991 
    992 The meaning of the first buffer element for image.YCbCr has changed to match
    993 the semantics of the other image types like image.RGBA.
    994 
    995 The NewMD5, NewSHA1 and NewSHA256 functions in crypto/hmac have been
    996 deprecated. Use New instead, explicitly passing the hash function.
    997 
    998 Other changes:
    999 * buildscripts: move to buildscript directory (thanks Shenghou Ma).
   1000 * bytes: add the usual copyright notice to example_test.go (thanks Olivier Duperray).
   1001 * cmd/go: remove mentions of 'gotest' from the documentation,
   1002 	skip _obj directories in package scans.
   1003 * container/heap: better package documentation.
   1004 * crypto/elliptic: add constant-time P224.
   1005 * crypto/hmac: Add HMAC-SHA224 and HMAC-SHA384/512 (thanks Luit van Drongelen),
   1006 * crypto/tls: add FreeBSD root certificate location (thanks Shenghou Ma).
   1007 * crypto/x509: remove explicit uses of rsa.
   1008 * doc: various updates (thanks Jongmin Kim, Scott Lawrence, Shenghou Ma, Stefan Nilsson).
   1009 * encoding/json: allow / and % in tag names,
   1010 	document angle bracket escaping,
   1011 	fix comments, tweak tests for tag names (thanks Mikio Hara).
   1012 * encoding/xml: marshal/unmarshal xml.Name in field (thanks Gustavo Niemeyer).
   1013 * exp/inotify: fix data race in linux tests.
   1014 * exp/proxy: fix build after URL changes (thanks Gustavo Niemeyer).
   1015 * exp/sql: copy when scanning into []byte by default,
   1016 	rename NullableString to NullString and allow its use as a parameter.
   1017 * exp/ssh: add marshal functions for uint32 and uint64 types,
   1018 	handle versions with just '\n',
   1019 	rename (some) fields (thanks Christopher Wedgwood).
   1020 * exp/terminal: fix build on non-Linux using Makefiles.
   1021 * fmt: enable and fix malloc test,
   1022 * gc: don't emit pkgpath for error type,
   1023 	don't fault on return outside function (thanks Scott Lawrence),
   1024 	fieldnames in structliterals in exported inlines should not be qualified if they're embedded builtin types,
   1025 	fix infinite recursion for embedded interfaces,
   1026 	give esc.c's sink an orig so -mm diagnostics work again,
   1027 	handle printing of string/arrayrune conversions.
   1028 	remove redundant code (thanks Shenghou Ma).
   1029 * go/build: no back slash in FindTree returned pkg name (thanks Alex Brainman).
   1030 * go/doc: collect imports,
   1031 	don't shadow receiver.
   1032 	rewrote and completed test framework.
   1033 	print only one newline between paragraphs
   1034 * go/parser: expressions may have comments.
   1035 * go/scanner: fix example (thanks Olivier Duperray).
   1036 * go/token: replaced Files() with Iterate().
   1037 * godoc: add anchors to cmd documentation headings,
   1038 	remove "need more packages?" link,
   1039 	specify HTML page metadata with a JSON blob,
   1040 	support canonical Paths in HTML metadata.
   1041 * html/template: fix docs after API changes (thanks Gustavo Niemeyer).
   1042 * html: in foreign content, check for HTML integration points in breakout.
   1043 * image/color: rename modelYCbCr to yCbCrModel (thanks Benny Siegert),
   1044 	simplify documentation (thanks David Crawshaw).
   1045 * image: add PixOffset methods.
   1046 * math/rand: decrease test duration in short mode,
   1047 	document default initial seed for global generator (thanks Scott Lawrence).
   1048 * mime: make FormatMediaType take full type for consistency.
   1049 * misc/cgo/test: make tests run on windows (thanks Alex Brainman).
   1050 * net/http/cgi: increase a flaky test timeout.
   1051 * net/http: change test to use override param instead of chan,
   1052 	log handler panic before closing HTTP connection,
   1053 	send cookies in jar on redirect (thanks Jeff Hodges),
   1054 	the documentation should call NewRequest with the right signature (thanks Christoph Hack),
   1055 	update the Client docs a bit.
   1056 * net/url: cleaned up URL interface (v2) (thanks Gustavo Niemeyer).
   1057 * net: consistent log format in test (thanks Mikio Hara),
   1058 	various build fixes (thanks Mikio Hara),
   1059 	use NewTimer, not NewTicker, in fd_windows.go.
   1060 * old/netchan: fix data race on client hashmap.
   1061 * os/exec: trivial allocation removal in LookPath (thanks Gustavo Niemeyer).
   1062 * os: remove old note about NewSyscallError being special (thanks Alex Brainman),
   1063 * path: added examples (thanks Sanjay Menakuru).
   1064 * pkg: Add and fix Copyright of "hand generated" files (thanks Olivier Duperray),
   1065 	add missing godoc comments to windows versions (thanks Alex Brainman).
   1066 * regexp: add SubexpNames.
   1067 * runtime: implement runtime.usleep for FreeBSD/386 and amd64 (thanks Shenghou Ma),
   1068 	madvise and SysUnused for Darwin (thanks Dave Cheney).
   1069 * sync/atomic: fix data race in tests.
   1070 * syscall: add Unix method to TimeSpec, TimeVal,
   1071 	fix plan9 build (thanks Mikio Hara).
   1072 * test: change several tests to not print,
   1073 	fix bug364 to actually run,
   1074 	match gccgo error messages for bug345,
   1075 	split golden.out into expected output per test.
   1076 * testing: do not recover example's panic (thanks Shenghou Ma),
   1077 	document examples.
   1078 * text/template/parse: use human error prints.
   1079 * text/template: fix nil error on redefinition.
   1080 * time: add Since, which returns the time elapsed since some past time t.
   1081 </pre>
   1082 
   1083 <h2 id="2012-01-15">2012-01-15</h2>
   1084 
   1085 <pre>
   1086 This weekly snapshot includes two package changes that may require changes to
   1087 client code.
   1088 
   1089 The image package's Tiled type has been renamed to Repeated.
   1090 
   1091 The encoding/xml package has been changed to make more idiomatic use of struct
   1092 tags, among other things. If you use the xml package please read the change
   1093 description to see if your code is affected:
   1094 	http://code.google.com/p/go/source/detail?r=70e914beb409
   1095 
   1096 Function inlining is now enabled by default in the gc compiler.
   1097 
   1098 Other changes:
   1099 * bytes: Buffer read of 0 bytes at EOF shouldn't be an EOF.
   1100 * cgo: if value for constant did not parse, get it from DWARF info,
   1101 	write _cgo_export.h to object directory, not source dir.
   1102 * cmd/go: add -p flag for parallelism (like make -j),
   1103 	add -v flag to build and install,
   1104 	add ... patterns in import path arguments,
   1105 	fix data race during build,
   1106 	fix import directory list for compilation,
   1107 	fix linker arguments,
   1108 	handle cgo pkg-config pragmas,
   1109 	handle path to cmd directory,
   1110 	include test files in fmt, vet, and fix (thanks Sanjay Menakuru),
   1111 	kill test processes after 10 minutes,
   1112 	pass arguments to command for run (thanks Eric Eisner),
   1113 	rely on exit code to tell if test passed,
   1114 	use relative paths in go fix, go fmt, go vet output.
   1115 * cmd/gofmt: fix simplify.go by running gofmt on cmd/gofmt (thanks Olivier Duperray).
   1116 * crypto/openpgp: assorted cleanups,
   1117 	truncate hashes before checking DSA signatures.
   1118 * crypto/tls: improve TLS Client Authentication (thanks Jeff R. Allen),
   1119 	update generate_cert.go for new time package.
   1120 * dashboard: better caching, bug fixes.
   1121 * doc: update "How to Write Go Code" to use the go tool.
   1122 	fix broken function codewalk examples.
   1123 * encoding/asn1: document support for *big.Int (thanks Florian Weimer).
   1124 * encoding/gob: fix panic when decoding []byte to incompatible slice types (thanks Alexey Borzenkov).
   1125 * encoding/json: don't marshal special float values (thanks Evan Shaw).
   1126 * encoding/xml: major Go 1 fixup (thanks Gustavo Niemeyer).
   1127 * exp/proxy: new package.
   1128 * exp/sql:  add time.Time support,
   1129 	close Rows on EOF,
   1130 	fix potential corruption in QueryRow.Scan into a *[]byte.
   1131 * exp/ssh: various small fixes (thanks Dave Cheney).
   1132 * exp/terminal: add SetPrompt and handle large pastes,
   1133 	add to level Makefile for the (non-Linux?) systems that need it.
   1134 * flag: add Duration flag type,
   1135 	change Set method Value interface to return error instead of bool.
   1136 * gc: better errors messages,
   1137 	avoid false positives when using scalar struct fields (thanks Rmy Oudompheng),
   1138 	closure code gen improvements,
   1139 	disallow declaration of variables outside package,
   1140 	fix switch on interface values (thanks Rmy Oudompheng),
   1141 	inlining bug fixes,
   1142 	improve unsafe.Pointer type-check error messages (thanks Ryan Hitchman),
   1143 	put limit on size of exported recursive interface (thanks Lorenzo Stoakes),
   1144 * go-mode.el: fix syntax highlighting of backticks (thanks Florian Weimer).
   1145 * go/ast: remove unnecessary result value from ast.Fprint/Print.
   1146 * go/build: allow colon in #cgo flags,
   1147 	pass CgoLDFLAGS at end of link command.
   1148 * go/doc: new API, don't ignore anonymous non-exported fields, initial testing support.
   1149 * go/parser: remove unused Parse* functions. Simplified ParseExpr signature.
   1150 * go/printer: don't crash if AST contains BadXXX nodes.
   1151 * go/scanner: 17% faster scanning, remove InsertSemis mode.
   1152 * goinstall: use correct checkout URL for Google Code svn repos.
   1153 * gotest: make _testmain.go conform to gofmt rules (thanks Benny Siegert).
   1154 * goyacc: fix units.y build breakage (thanks Shenghou Ma).
   1155 * html/template: reenable testcases and fix mis-escaped sequences (thanks Mike Samuel).
   1156 * html: "in select in table" insertion mode (thanks Andrew Balholm),
   1157 	adjust foreign attributes,
   1158 	foreign element HTML integration points, tag name adjustment,
   1159 	parse <frameset> inside body (thanks Andrew Balholm),
   1160 	propagate foreign namespaces only when adding foreign content.
   1161 * json: better error messages when the ,string option is misused.
   1162 * ld: parse but do not implement -X flag.
   1163 * log/syslog: add Alert method (thanks Vadim Vygonets).
   1164 * make.bash: remove old dregs (thanks Alex Brainman).
   1165 * math/big: simplify fast string conversion.
   1166 * math: fix typo in all_test.go (thanks Charles L. Dorian).
   1167 * misc/windows: add src/pkg/runtime/z* files to installation script (thanks Alex Brainman).
   1168 * net/http: don't ignore Request.Write's Flush error,
   1169 	allow cookies with negative Max-Age attribute as these are (thanks Volker Dobler).
   1170 * net/textproto: avoid corruption when reading a single header.
   1171 * net: add IP-level socket option helpers for Unix variants (thanks Mikio Hara),
   1172 	fix incorrect mode on ListenIP, ListenUDP (thanks Mikio Hara),
   1173 	make use of the kernel state to listen on TCP, Unix (thanks Mikio Hara),
   1174 	platform-dependent default socket options (thanks Mikio Hara).
   1175 * os: add ModeCharDevice.
   1176 * runtime: add NumCPU,
   1177 	delete duplicate implementation of pcln walker,
   1178 	distinct panic message for call of nil func value,
   1179 	enable runtime.ncpu on FreeBSD (thanks Devon H. O'Dell),
   1180 	make garbage collector faster by deleting code,
   1181 	regenerate defs_darwin_{386,amd64}.h (thanks Dave Cheney),
   1182 	runtime.usleep() bugfix on darwin/amd64 and linux/arm (thanks Shenghou Ma).
   1183 * spec: pointer comparison for pointers to 0-sized variables,
   1184 	change the wording regarding select statement choice.
   1185 * strconv: fix round up corner case,
   1186 	faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm (thanks Rmy Oudompheng),
   1187 	implement fast path for rounding already short numbers (thanks Rmy Oudompheng),
   1188 	return ErrSyntax when unquoting illegal octal sequences.
   1189 * syscall: linux-only support for parent death signal (thanks Albert Strasheim),
   1190 	make Environ return original order.
   1191 * testing: fix defer race,
   1192 	use flag.Duration for -timeout flag.
   1193 * text/template: handle panic values that are not errors (thanks Rmy Oudompheng),
   1194 	for range on a map, sort the keys if feasible.
   1195 * time: add ParseDuration,
   1196 	fix docs for After and NewTicker.
   1197 * windows: use ArbitraryUserPointer as TLS slot (thanks Wei Guangjing).
   1198 </pre>
   1199 
   1200 <h2 id="2011-12-22">2011-12-22</h2>
   1201 
   1202 <pre>
   1203 This snapshot includes changes to the images/ycbcr and testing packages, and
   1204 changes to the build system.
   1205 
   1206 The types for managing Y'CbCr images in the image/ycbcr have been moved to the
   1207 image and image/color packages. A gofix module will rewrite affected code.
   1208 
   1209 The testing package's B type (used when running benchmarks) now has the same
   1210 methods as T (used in tests), such as Print, Error, and Fatal.
   1211 
   1212 This weekly adds a new command named 'go' for building and testing go programs.
   1213 For Go 1, the go command will replace the makefile-based approach that we have
   1214 been using. It is not yet ready for general use, but all.bash does use it to
   1215 build the tree. If you have problems building the weekly, you can 'export
   1216 USE_GO_TOOL=false' before running all.bash to fall back to the makefiles.
   1217 
   1218 Other changes:
   1219 * archive/zip: add SetModTime method to FileHeader.
   1220 * build: make use of env (thanks Mikio Hara),
   1221 	fixes to make "go install" work on windows (thanks Alex Brainman).
   1222 * bytes: add two Buffer examples.
   1223 * cgo: support export for built-in types (thanks Maxim Pimenov).
   1224 * cmd/go: avoid infinite loop with package specific flags (thanks Mikio Hara),
   1225 	fixes to build standard library,
   1226 	implement test command,
   1227 	make sure use of pthread for gcc-4.5 and beyond (thanks Mikio Hara),
   1228 	respect $GCFLAGS,
   1229 	use spaces consistently in help message (thanks Roger Peppe),
   1230 	many other improvements.
   1231 * codereview: initialize "found" in codereview.py (thanks Miki Tebeka).
   1232 * crypto/mime/net/time: add netbsd to +build tags (thanks Joel Sing).
   1233 * crypto/tls: don't assume an RSA private key in the API.
   1234 * crypto/x509: don't crash with nil receiver in accessor method.
   1235 * doc/effective_go: discuss redeclaration.
   1236 * doc: delete go course notes,
   1237 	refer to http://build.golang.org/ where applicable (thanks Robert Hencke),
   1238 	suggest code.google.com/p/go instead of go.googlecode.com/hg.
   1239 * encoding/binary: add Write and Read examples,
   1240 	add more benchmarks (thanks Roger Peppe).
   1241 * encoding/gob: arrays are zero only if their elements are zero.
   1242 * encoding/json: cleanup leftover variables in array decoding (thanks Rmy Oudompheng),
   1243 	examples for Marshal and Unmarshal.
   1244 * exp/ssh: rename ClientAuthPublicKey helper ClientAuthKeyring (thanks Dave Cheney),
   1245 	simplify Stdin/out/errPipe methods (thanks Dave Cheney).
   1246 * fmt: speed up floating point print, clean up some code,
   1247 	make the malloc test check its counts.
   1248 * gc: allow use of unsafe.Pointer in generated code,
   1249 	avoid unsafe in defn of package runtime,
   1250 	better linenumbers for inlined functions,
   1251 	better loopdepth analysis for labels,
   1252 	implement and test \r in raw strings,
   1253 	inlining, allow empty bodies, fix _ arguments,
   1254 	omit argument names from function types in error messages.
   1255 * go/ast, parser: remember short variable decls. w/ correspoding ident objects.
   1256 * go/build: add new +build tags 'cgo' and 'nocgo'.
   1257 * go/doc, godoc: move export filtering into go/doc
   1258 * go/printer, gofmt: fine tuning of line spacing.
   1259 * go/scanner: strip CRs from raw literals.
   1260 * gob: isZero for struct values.
   1261 * godoc: allow examples for methods (thanks Volker Dobler),
   1262 	show methods of anonymous fields.
   1263 * goinstall: only suggest -fix for bad imports when appropriate.
   1264 * govet: add checking for printf verbs,
   1265 	divide the program into one file per vetting suite.
   1266 * html: more parser improvements (thanks Andrew Balholm).
   1267 * json: some tests to demonstrate bad error messages,
   1268 	use strconv.Append variants to avoid allocations in encoding.
   1269 * ld: add support for netbsd signature note section (thanks Joel Sing),
   1270 	allow for IMAGE_REL_AMD64_ADDR32NB relocation type (thanks Alex Brainman).
   1271 * math/big: Rand shouldn't hang if argument is also receiver.
   1272 * misc/builder: set default builder host to build.golang.org.
   1273 * misc/dashboard: delete old build dashboard code ,
   1274 	improvements and fixes for the go implementation.
   1275 * misc/vim: fix go filetype detection (thanks Paul Sbarra).
   1276 * net, syscall, os: set CLOEXEC flag on epoll/kqueue descriptor.
   1277 * net, syscall: interface address and mask (thanks Mikio Hara).
   1278 * net/http: added interface for a cookie jar (thanks Volker Dobler),
   1279 	test fixes (thanks Alex Brainman).
   1280 * net: add DialTimeout,
   1281 	sort Makefile entries (thanks Mikio Hara).
   1282 * os, syscall: beginnings of NetBSD support (thanks Christopher Nielsen).
   1283 * os/exec: add test to verify net package's epoll fd doesn't go to child,
   1284 	disable the ExtraFiles test on darwin.
   1285 * os: don't trust O_CLOEXEC on OS X,
   1286 	make sure Remove returns correct error on windows (thanks Alex Brainman).
   1287 * path, path/filepath: add Dir to complement Base.
   1288 * path/filepath.Rel: document that the returned path is always relative.
   1289 * runtime: don't panic on SIGILL, just crash.
   1290 * spec: be precise about newlines.
   1291 * sql: add Rows.Columns.
   1292 * strconv: fix bug in extended-float based conversion,
   1293 	implement faster parsing of decimal numbers, and
   1294 	reduce buffer size for multi-precision decimals (thanks Rmy Oudompheng).
   1295 * syscall: regenerate z-files for linux/arm (thanks Mikio Hara),
   1296 	sort Makefile, mkall.sh and mkerrors.sh entries (thanks Mikio Hara).
   1297 * test/bench/go1: first draft of Go 1 benchmark suite.
   1298 * testing: compare Log to Println (thanks Robert Hencke),
   1299 	make signalling safer for parallel tests.
   1300 * text/template: better error message for empty templates,
   1301 	fix handing of nil arguments to functions (thanks Gustavo Niemeyer).
   1302 * time: add JSON marshaler for Time (thanks Robert Hencke),
   1303 	new AddDate method (thanks Roger Peppe).
   1304 * various: use $GCFLAGS and $GCIMPORTS like Make does (thanks Maxim Pimenov).
   1305 </pre>
   1306 
   1307 <h2 id="2011-12-14">2011-12-14</h2>
   1308 
   1309 <pre>
   1310 This snapshot includes language changes and changes to goinstall and gofmt.
   1311 
   1312 Equality and inequality (== and !=) are now defined for struct and array
   1313 values, respectively, provided the elements of the data structures can
   1314 themselves be compared. See the Go 1 release notes for the details:
   1315 	http://weekly.golang.org/doc/go1.html#equality
   1316 
   1317 The rune type is now an alias for int32 and character literals have the default
   1318 type of rune. Code that uses int where it should use rune will break. 
   1319 See the Go 1 release notes for the details:
   1320 	http://weekly.golang.org/doc/go1.html#rune
   1321 
   1322 Goinstall now expects Google Code import paths to be of the form:
   1323 	"code.google.com/p/go-tour/tree"
   1324 It will reject imports in the old style "go-tour.googlecode.com/hg/tree".
   1325 There is a gofix module to rename such imports.
   1326 Use goinstall -fix to update broken packages.
   1327 
   1328 Gofmt's flags have been modified slightly.
   1329 The -tabintent flag has been renamed -tabs.
   1330 The -spaces flag has been removed.
   1331 
   1332 Other changes:
   1333 * 5c, 6c, 8c: support 64-bit switch value (thanks Anthony Martin).
   1334 * 8c: handle 64-bit switch value.
   1335 * archive/tar: use struct comparison not DeepEqual (thanks Christopher Wedgwood).
   1336 * archive/zip: make zip understand os.FileMode (thanks Roger Peppe).
   1337 * bufio: make the minimum read buffer size 16 bytes.
   1338 * build: disable cgo on Windows/amd64,
   1339 	regularize packages so they may be built without Makefiles.
   1340 * bytes: faster Count, Index, Equal.
   1341 * cgo: add basic gccgo support (thanks Rmy Oudompheng).
   1342 * codereview: fix path slash issue (thanks Yasuhiro Matsumoto).
   1343 * compress/flate: fix out of bounds error.
   1344 * contribute.html: do not fill in the reviewer field (thanks Florian Weimer).
   1345 * crypto/aes: made faster by eliminating some indirection (thanks Taru Karttunen).
   1346 * crypto/dsa: don't truncate input hashes.
   1347 * doc/go_tutorial: make clear the file example is Unix-specific.
   1348 * doc: add Defer, Panic, and Recover article,
   1349 	add Error Handling article,
   1350 	add Go 1 release notes document.
   1351 * encoding/gob: better error messages when types mismatch.
   1352 * env.bash: export CGO_ENABLED so cgo tests run (thanks Alex Brainman).
   1353 * exp/sql: simplify some string conversions.
   1354 * exp/ssh: Wait returns an *ExitError (thanks Gustav Paul).
   1355 * exp/ssh: improve client channel close behavior (thanks Dave Cheney).
   1356 * fmt: don't recur if String method (etc.) misbehaves.
   1357 * gc: better error messages,
   1358 	inlining (disabled without -l),
   1359 	many bug fixes (thanks Lucio De Re and Rmy Oudompheng).
   1360 * go/printer, godoc: print comments in example code.
   1361 * go: implement doc, fmt, fix, list, vet, build, and install.
   1362 * gobuilder: goinstall packages after building go tree.
   1363 * godoc: &lt;pre&gt; must not occur inside &lt;p&gt; (thanks Olivier Duperray),
   1364 	added an opensearch description document (thanks Christoph Hack),
   1365 	text wrapping.
   1366 * gofix: add httputil fix (thanks Yasuhiro Matsumoto).
   1367 * gotest: use go/build more (thanks Robert Hencke).
   1368 * gzip: convert between Latin-1 and Unicode (thanks Vadim Vygonets).
   1369 * html/template: define the FuncMap type locally.
   1370 * html: a first step at parsing foreign content (MathML, SVG),
   1371 	more parser improvements (thanks Andrew Balholm).
   1372 * http: close connection after printing panic stack trace (thanks Roger Peppe),
   1373 	fix failing Transport HEAD request with gzip-looking response.
   1374 * json: treat renamed byte slices the same as []byte.
   1375 * ld: first pass at linker support for NetBSD binaries (thanks Christopher Nielsen),
   1376 	fix memory leaks (thanks Scott Lawrence),
   1377 	increase default stack size on Windows for cgo.
   1378 * math: delete non-Sqrt-based Hypot,
   1379 	implement, document, and fix special cases (thanks Charles L. Dorian),
   1380 * misc/benchcmp: don't require "Benchmark" at beginning of line.
   1381 * misc/osx: rename profile.go to profile_go (thanks Scott Lawrence).
   1382 * net/http: fix trivial example server (thanks Olivier Duperray),
   1383 	net/http: make test remove temporary file and directory.
   1384 * net/smtp: add CRAM-MD5 authentication (thanks Vadim Vygonets).
   1385 * reflect: fix Slice cap (thanks Gustavo Niemeyer).
   1386 * regexp: performance improvements; avoid allocation of input interface.
   1387 * runtime: bump gc 'extra bytes' check (thanks Christopher Wedgwood),
   1388 	madvise and SysUnused for Linux (thanks Sbastien Paolacci),
   1389 	make gc_test test extra allocated space, not total space,
   1390 	support for NetBSD (thanks Christopher Nielsen).
   1391 * spec: adjust complex constant example (thanks Robert Hencke),
   1392 	values of underlying type uintptr can be converted to unsafe.Pointer,
   1393 	var x = 'a' defaults to type rune.
   1394 * strconv: include package and function name in error strings,
   1395 	make QuoteRune etc. take a rune argument,
   1396 	some performance improvements.
   1397 * syscall: add constants for flock() system call under Linux,
   1398 	regenerate z-files for darwin, freebsd (thanks Mikio Hara),
   1399 	regenerate z-files for openbsd,
   1400 	return error, not uintptr, when function returns error (thanks Alex Brainman).
   1401 * test/bench: move to test/bench/shootout.
   1402 * test/garbage: move to test/bench/garbage.
   1403 * test: make array smaller in nilptr test.
   1404 * time: allow sleep tests to run for 200% too long,
   1405 	fix Time.Add (thanks Hector Chu),
   1406 	fix daysIn for December (thanks Peter Mundy),
   1407 	gob marshaler for Time (thanks Robert Hencke),
   1408 	use Duration for AfterFunc.
   1409 * various: a grab-bag of time.Duration cleanups.
   1410 </pre>
   1411 
   1412 <h2 id="2011-12-06">2011-12-06</h2>
   1413 
   1414 <pre>
   1415 This snapshot includes a language change and changes to the strconv and go/doc
   1416 packages. The package changes require changes to client code.
   1417 The language change is backwards-compatible.
   1418 
   1419 Type elision in arrays, slices, or maps of composite literals has been
   1420 extended to include pointers to composite literals. Code like this
   1421 	var t = []*T{&amp;T{}, &amp;T{}}
   1422 may now be written as
   1423 	var t = []*T{{}, {}}
   1424 You can use gofmt -s to simplify such code.
   1425 
   1426 The strconv package has been given a more idiomatic and efficient interface.
   1427 Client code can be updated with gofix. See the docs for the details:
   1428 	http://weekly.golang.org/pkg/strconv/
   1429 
   1430 The go/doc package's ToHTML function now takes a []byte argument instead of a
   1431 string.
   1432 
   1433 Other changes:
   1434 * crypto/aes: eliminate some bounds checking and truncation (thanks Rmy Oudompheng).
   1435 * crypto/x509: if a parent cert has a raw subject, use it.
   1436 * encoding/gob: don't send type info for unexported fields.
   1437 * exp/ssh: allow for msgUserAuthBanner during authentication (thanks Gustav Paul).
   1438 * fmt: benchmark floating point,
   1439 	only use Stringer or Error for strings.
   1440 * gc: changes in export format in preparation of inlining,
   1441 	disallow map/func equality via interface comparison,
   1442 	use gofmt spacing when printing map type.
   1443 * go/doc: exclude lines ending in ':' from possible headings.
   1444 * gobuilder: -commit mode for packages,
   1445 	cripple -package mode temporarily,
   1446 	use new dashboard protocol.
   1447 * godoc: improved output of examples in html (thanks Volker Dobler).
   1448 * gofmt: handle &T in composite literal simplify.
   1449 * goinstall: honour -install=false flag when -make=true.
   1450 * hash: rewrite comment on Hash.Sum method.
   1451 * html: more parser improvements (thanks Andrew Balholm).
   1452 * image: avoid func comparison during ColorModel comparison.
   1453 * math: add special-cases comments to Sinh and Tanh (thanks Charles L. Dorian).
   1454 * misc/dashboard: further implementation work.
   1455 * net, syscall: remove BindToDevice from UDPConn, IPConn (thanks Mikio Hara).
   1456 * net/mail: correctly compare parsed times in the test.
   1457 * os/exec: make LookPath always search CWD under Windows (thanks Benny Siegert).
   1458 * runtime: prep for type-specific algorithms.
   1459 * strconv: 34% to 63% faster conversions.
   1460 </pre>
   1461 
   1462 <h2 id="2011-12-02">2011-12-02</h2>
   1463 
   1464 <pre>
   1465 This weekly snapshot includes changes to the hash package and a gofix for the
   1466 time and os.FileInfo changes in the last snapshot.
   1467 
   1468 The hash.Hash's Sum method has been given a []byte argument,
   1469 permitting the user to append the hash to an existing byte slice.
   1470 Existing code that uses Sum can pass nil as the argument.
   1471 Gofix will make this change automatically.
   1472 
   1473 Other changes:
   1474 * crypto/tls: cleanup certificate load on windows (thanks Alex Brainman).
   1475 * exp/ssh: add Std{in,out,err}Pipe methods to Session (thanks Dave Cheney).
   1476 * dashboard: don't choke on weird builder names.
   1477 * exp/ssh: export type signal, now Signal (thanks Gustav Paul).
   1478 * os: add ModeType constant to mask file type bits (thanks Gustavo Niemeyer).
   1479 * text/template: replace Add with AddParseTree.
   1480 * go/doc: detect headings and format them in html (thanks Volker Dobler).
   1481 </pre>
   1482 
   1483 <h2 id="2011-12-01">2011-12-01</h2>
   1484 
   1485 <pre>
   1486 This weekly snapshot includes changes to the time, os, and text/template
   1487 packages. The changes to the time and os packages are significant and related.
   1488 Code that uses package time, package text/template, or package os's FileInfo
   1489 type will require changes.
   1490 
   1491 In package time, there is now one type - time.Time - to represent times.
   1492 Note that time.Time should be used as a value, in contrast to old code
   1493 which typically used a *time.Time, a pointer to a large struct.  (Drop the *.)
   1494 Any function that previously accepted a *time.Time, an int64
   1495 number of seconds since 1970, or an int64 number of nanoseconds
   1496 since 1970 should now accept a time.Time.  Especially as a replacement
   1497 for the int64s, the type is good documentation about the meaning of
   1498 its value.
   1499 
   1500 Whether you were previously calling time.Seconds, time.Nanoseconds,
   1501 time.LocalTime, or time.UTC, the replacement is the new function
   1502 time.Now.
   1503 
   1504 If you previously wrote code like:
   1505 
   1506        t0 := time.Nanoseconds()
   1507        myFunction()
   1508        t1 := time.Nanoseconds()
   1509        delta := t1 - t0
   1510        fmt.Printf("That took %.2f seconds\n", float64(t1-t0)/1e9)
   1511 
   1512 you can now write:
   1513 
   1514        t0 := time.Now()
   1515        myFunction()
   1516        t1 := time.Now()
   1517        delta := t1.Sub(t0)
   1518        fmt.Printf("That took %s\n", delta)
   1519 
   1520 In this snippet, the variable delta is of the new type time.Duration, the
   1521 replacement for the many int64 parameters that were nanosecond
   1522 counts (but not since 1970).
   1523 
   1524 Gofix can do the above conversions and some others, but it does not
   1525 rewrite explicit int64 types as time.Time. It is very likely that you will
   1526 need to edit your program to change these types after running gofix.
   1527 As always, be sure to read the changes that gofix makes using your
   1528 version control system's diff feature.
   1529 
   1530 See http://weekly.golang.org/pkg/time/ for details.
   1531 
   1532 In package os, the FileInfo struct is replaced by a FileInfo interface,
   1533 admitting implementations by code beyond the operating system.
   1534 Code that refers to *os.FileInfo (a pointer to the old struct) should
   1535 instead refer to os.FileInfo (the new interface).
   1536 The interface has just a few methods:
   1537 
   1538        type FileInfo interface {
   1539                Name() string       // base name of the file
   1540                Size() int64        // length in bytes
   1541                Mode() FileMode     // file mode bits
   1542                ModTime() time.Time // modification time
   1543                IsDir() bool        // abbreviation for Mode().IsDir()
   1544        }
   1545 
   1546 If you need access to the underlying stat_t provided by the operating
   1547 system kernel, you can access it by assuming that the FileInfo you are
   1548 holding is actually an *os.FileStat, and that it's Sys field is actually a
   1549 *syscall.Stat_t, as in:
   1550 
   1551        dev := fi.(*os.FileStat).Sys.(*syscall.Stat_t).Dev
   1552 
   1553 Of course, this is not necessarily portable across different operating
   1554 systems.
   1555 
   1556 Gofix will take care of rewriting *os.FileInfo to os.FileInfo for you,
   1557 and it will also rewrite expressions like fi.Name into calls like fi.Name().
   1558 
   1559 See http://weekly.golang.org/pkg/os/#FileInfo for details.
   1560 
   1561 The template package has been changed to export a new, simpler API.
   1562 The Set type is gone. Instead, templates are automatically associated by
   1563 being parsed together; nested definitions implicitly create associations.
   1564 Only associated templates can invoke one another.
   1565 This approach dramatically reduces the breadth of the construction API.
   1566 The html/template package has been updated also.
   1567 There's a gofix for the simplest and most common uses of the old API.
   1568 Code that doesn't mention the Set type is likely to work after running gofix;
   1569 code that uses Set will need to be updated by hand.
   1570 The template definition language itself is unchanged.
   1571 
   1572 See http://weekly.golang.org/pkg/text/template/ for details.
   1573 
   1574 
   1575 Other changes:
   1576 * cgo: add support for callbacks from dynamic libraries.
   1577 * codereview: gofmt check for non-src/ files (thanks David Crawshaw).
   1578 * crypto/openpgp/packet: fix private key checksum.
   1579 * crypto/tls: add openbsd root certificate location,
   1580 	don't rely on map iteration order.
   1581 * crypto/x509, crypto/tls: support PKCS#8 private keys.
   1582 * dashboard: start of reimplementation in Go for App Engine.
   1583 * encoding/xml: fix copy bug.
   1584 * exp/gui: move exp/gui and exp/gui/x11 to http://code.google.com/p/x-go-binding
   1585 * exp/ssh: various improvements (thanks Dave Cheney and Gustav Paul).
   1586 * filepath/path: fix Rel buffer sizing (thanks Gustavo Niemeyer).
   1587 * gc: fix Nconv bug (thanks Rmy Oudompheng) and other fixes.
   1588 * go/printer, gofmt: performance improvements.
   1589 * gofix: test and fix missorted renames.
   1590 * goinstall: add -fix flag to run gofix on packages on build failure,
   1591 	better error reporting,
   1592 	don't hit network unless a checkout or update is required,
   1593 	support Google Code sub-repositories.
   1594 * html: parser improvements (thanks Andrew Balholm).
   1595 * http: fix sniffing bug causing short writes.
   1596 * json: speed up encoding, caching reflect calls.
   1597 * ld: align ELF data sections.
   1598 * math/big: fix destination leak into result value (thanks Roger Peppe),
   1599 	use recursive subdivision for significant speedup.
   1600 * math: faster Cbrt and Sincos (thanks Charles L. Dorian).
   1601 * misc/osx: scripts to make OS X package and disk image (thanks Scott Lawrence).
   1602 * os: fail if Open("") is called on windows (thanks Alex Brainman).
   1603 * runtime: make sure stack is 16-byte aligned on syscall (thanks Alex Brainman).
   1604 * spec, gc: allow direct conversion between string and named []byte, []rune.
   1605 * sql: add Tx.Stmt to use an existing prepared stmt in a transaction,
   1606 	more driver docs & tests; no functional changes.
   1607 * strings: add ContainsAny and ContainsRune (thanks Scott Lawrence).
   1608 * syscall: add SUSv3 RLIMIT/RUSAGE constants (thanks Sbastien Paolacci),
   1609 	fix openbsd sysctl hostname/domainname workaround,
   1610 	implement Syscall15 (thanks Alex Brainman).
   1611 * time: fix Timer stop.
   1612 </pre>
   1613 
   1614 <h2 id="2011-11-18">2011-11-18</h2>
   1615 
   1616 <pre>
   1617 This snapshot includes some language changes.
   1618 
   1619 Map and function value comparisons are now disallowed (except for comparison
   1620 with nil) as per the Go 1 plan. Function equality was problematic in some
   1621 contexts and map equality compares pointers, not the maps' content.
   1622 
   1623 As an experiment, structs are now allowed to be copied even if they contain
   1624 unexported fields. This gives packages the ability to return opaque values in
   1625 their APIs.
   1626 
   1627 Other changes:
   1628 * 6a, 8a: allow $(-1) for consistency with $1, $(1), $-1.
   1629 * 6l: code generation fixes (thanks Micha Derkacz).
   1630 * build: fix check for selinux allow_execstack on Fedora (thanks Bobby Powers).
   1631 * builtin: document delete.
   1632 * cgo: don't panic on undeclared enums/structs (thanks Rmy Oudompheng),
   1633 	fix g0 stack guard.
   1634 * crypto/tls: fix handshake message test.
   1635 * crypto: update incorrect references to Cipher interface; should be Block.
   1636 * doc: clean ups, additions, and fixes to several documents.
   1637 * doc/install: add openbsd (thanks Joel Sing!).
   1638 * doc: link to Chinese translation of A Tour of Go.
   1639 * encoding/json: add marshal/unmarshal benchmark,
   1640 	decode [] as empty slice, not nil slice,
   1641 	make BenchmarkSkipValue more consistent.
   1642 * env.bash: check for presence of make/gmake (thanks Scott Lawrence).
   1643 * exp/sql: NumInput() allow -1 to ignore checking (thanks Yasuhiro Matsumoto),
   1644 	add DB.Close, fix bugs, remove Execer on Driver (only Conn),
   1645 	document that for drivers, io.EOF means no more rows,
   1646 	add client side support for publickey auth (thanks Dave Cheney),
   1647 	add direct-tcpip client support (thanks Dave Cheney),
   1648 	change test listen address, also exit test if fails,
   1649 	other fixes and improvements (thanks Dave Cheney).
   1650 * exp/terminal: rename shell to terminal and add SetSize.
   1651 * fcgi: fix server capability discovery.
   1652 * fmt: distinguish empty vs nil slice/map in %#v.
   1653 * gc: better error, type checks, and many fixes,
   1654 	remove m[k] = x, false syntax (use delete(m, k) instead),
   1655 	support for building with Plan 9 yacc (thanks Anthony Martin).
   1656 * go/printer: make //line formatting idempotent.
   1657 * godefs: delete, replaced by cgo -godefs.
   1658 * godoc: document -templates flag, fix remote search,
   1659 	provide mode for flat (non-indented) directory listings.
   1660 * gofmt: leave nil nodes of the AST unchanged (thanks Rmy Oudompheng).
   1661 * html/template: indirect top-level values before printing.
   1662 * html: more parser improvements (thanks Andrew Balholm).
   1663 * http: fix serving from CWD with http.ServeFile,
   1664 	make Dir("") equivalent to Dir(".").
   1665 * ld: fix .bss for ldpe (thanks Wei Guangjing).
   1666 * math/big: replace nat{} -&gt; nat(nil).
   1667 * math: faster Lgamma (thanks Charles L. Dorian).
   1668 * mime: implement TypeByExtension for windows.
   1669 * misc/bbedit: error and rune support (thanks Anthony Starks).
   1670 * misc/benchcmp: benchmark comparison script.
   1671 * misc/emacs: add delete builtin (thanks Bobby Powers).
   1672 * misc/kate: add error and rune (thanks Evan Shaw).
   1673 * misc/notepadplus: error and rune support (thanks Anthony Starks).
   1674 * misc/windows: Windows installer in MSI format (thanks Joe Poirier).
   1675 * net, io/ioutil: remove use of os.Time (thanks Anthony Martin).
   1676 * net/http: fix EOF handling on response body (thanks Gustavo Niemeyer),
   1677 	fix sniffing when using ReadFrom,
   1678 	use t.Errorf from alternate goroutine in test.
   1679 * os: remove undocumented Envs (use os.Environ instead).
   1680 * reflect: empty slice/map is not DeepEqual to nil,
   1681 	make Value an opaque struct.
   1682 * runtime, syscall: convert from godefs to cgo.
   1683 * runtime: add nanotime for Plan 9 (thanks Anthony Martin),
   1684 	add timer support, use for package time,
   1685 	avoid allocation for make([]T, 0).
   1686 * strconv: add Ftoa benchmarks, make Ftoa faster.
   1687 * syscall: delete syscall.Sleep, take over env implementation, use error.
   1688 * testing: add file:line stamps to messages, print results to standard output.
   1689 * text/template: refactor set parsing.
   1690 * time: add ISOWeek method to Time (thanks Volker Dobler).
   1691 * various: avoid func compare, reduce overuse of os.EINVAL + others.
   1692 </pre>
   1693 
   1694 <h2 id="2011-11-09">2011-11-09</h2>
   1695 
   1696 <pre>
   1697 This weekly snapshot renames various Go packages as described in the Go 1 plan.
   1698 Import statements in client code can be updated automatically with gofix.
   1699 
   1700 The changes are:
   1701 	asn1              -&gt; encoding/asn1
   1702 	big               -&gt; math/big
   1703 	cmath             -&gt; math/cmplx
   1704 	csv               -&gt; encoding/csv
   1705 	exec              -&gt; os/exec
   1706 	exp/template/html -&gt; html/template
   1707 	gob               -&gt; encoding/gob
   1708 	http              -&gt; net/http
   1709 	http/cgi          -&gt; net/http/cgi
   1710 	http/fcgi         -&gt; net/http/fcgi
   1711 	http/httptest     -&gt; net/http/httptest
   1712 	http/pprof        -&gt; net/http/pprof
   1713 	json              -&gt; encoding/json
   1714 	mail              -&gt; net/mail
   1715 	rpc               -&gt; net/rpc
   1716 	rpc/jsonrpc       -&gt; net/rpc/jsonrpc
   1717 	scanner           -&gt; text/scanner
   1718 	smtp              -&gt; net/smtp
   1719 	syslog            -&gt; log/syslog
   1720 	tabwriter         -&gt; text/tabwriter
   1721 	template          -&gt; text/template
   1722 	template/parse    -&gt; text/template/parse
   1723 	rand              -&gt; math/rand
   1724 	url               -&gt; net/url
   1725 	utf16             -&gt; unicode/utf16
   1726 	utf8              -&gt; unicode/utf8
   1727 	xml               -&gt; encoding/xml
   1728 </pre>
   1729 
   1730 <h2 id="2011-11-08">2011-11-08</h2>
   1731 
   1732 <pre>
   1733 This weekly snapshot includes some package changes.
   1734 
   1735 In preparation for the Go 1 package reorganziation the sources for various
   1736 packages have been moved, but the import paths remain unchanged. This
   1737 inconsistency breaks goinstall at this snapshot. If you use goinstall, please
   1738 stay synced to the previous weekly snapshot until the next one is tagged.
   1739 
   1740 The Error methods in the html, bzip2, and sql packages that return error values
   1741 have been renamed to Err.
   1742 
   1743 Some non-core parts of the http package have been moved to net/http/httputil.
   1744 The Dump* and NewChunked* functions and ClientConn, ServerConn, and
   1745 ReverseProxy types have been moved from http to httputil.
   1746 
   1747 The API for html/template is now a direct copy of the template API, instead of
   1748 exposing a single Escape function. For HTML templates, use the
   1749 html/template package as you would the template package.
   1750 
   1751 Other changes:
   1752 * all: rename os.EOF to io.EOF in non-code contexts (thanks Vincent Vanackere),
   1753 	sort imports with gofix.
   1754 * archive/zip: close file opened with OpenReader (thanks Dmitry Chestnykh).
   1755 * bufio: return nil line from ReadLine on error, as documented.
   1756 * builtin: document basic types and the built-in error type.
   1757 * bytes: add Contains function.
   1758 * exp/sql: finish implementation of transactions, flesh out types, docs.
   1759 * exp/ssh: improved client authentication support (thanks Dave Cheney).
   1760 * gc: better error message for range over non-receive channel,
   1761 	bug fixes and clean-ups,
   1762 	detect type switch variable not used cases,
   1763 	fix escaping of package paths in symbol names,
   1764 	helpful error message on method call on pointer to pointer,
   1765 	portably read archive headers (thanks Ron Minnich).
   1766 * gob: fix bug when registering the same type multiple times.
   1767 * gofix: avoid panic on body-less functions in netudpgroup,
   1768 	make fix order implicit by date.
   1769 * gofmt, gofix: sort imports.
   1770 * goinstall: support launchpad.net/~user branches (thanks Jani Monoses).
   1771 * gopack: do not look for Go metadata in non-Go objects.
   1772 * gotest: don't run examples that have no expected output.
   1773 * html: the parser bug fixing campaign continues (thanks Andrew Balholm).
   1774 * http: fix whitespace handling in sniffer,
   1775 	only recognize application/x-www-form-urlencoded in ParseForm,
   1776 	support Trailers in ReadRequest.
   1777 * lib9: add ctime.
   1778 * math: faster Gamma (thanks Charles L. Dorian),
   1779 	improved accuracy for Tan (thanks Charles L. Dorian),
   1780 	improved high-angle test for Cos, Sin and Tan (thanks Charles L. Dorian).
   1781 * net: implement LookupTXT for windows (thanks Alex Brainman).
   1782 * os,text,unicode: renamings.
   1783 * runtime/cgo: fix data declaration to be extern.
   1784 * runtime: add timespec definition for freebsd,
   1785 	add windows callback tests (thanks Alex Brainman),
   1786 	fix prototype for openbsd thrsleep,
   1787 	fix set and not used,
   1788 	unify mutex code across OSes,
   1789 	windows_386 sighandler to use correct g (thanks Alex Brainman).
   1790 * template: format error with pointer receiver,
   1791 	make redefinition of a template in a set more consistent.
   1792 * test: clear execute bit from source file (thanks Mikio Hara),
   1793 	make closedchan.go exit with failure if something fails.
   1794 * time: faster Nanoseconds call.
   1795 * websocket: return an error HTTP response for bad websocket request.
   1796 * xml: allow parsing of &lt;_&gt; &lt;/_&gt;. (thanks David Crawshaw).
   1797 </pre>
   1798 
   1799 <h2 id="2011-11-02">2011-11-02 (new error type)</h2>
   1800 
   1801 <pre>
   1802 This snapshot introduces the built-in error type, defined as
   1803 
   1804        type error interface {
   1805                Error() string
   1806        }
   1807 
   1808 The error type replaces os.Error. Notice that the method name has changed from
   1809 String to Error. Package fmt's Print formats both Stringers and errors:
   1810 in general there is no need to implement both String and Error methods.
   1811 
   1812 Gofix can update most code. If you have split your package across many files,
   1813 it may help to use the -force=error command-line option, which forces gofix to
   1814 apply the error fix even if it is not obvious that a particular file needs it.
   1815 As always, it is a good idea to read and test the changes that gofix made
   1816 before committing them to your version control system.
   1817 </pre>
   1818 
   1819 <h2 id="2011-11-01">2011-11-01</h2>
   1820 
   1821 <pre>
   1822 * 6l: remove mention of -e flag - it does nothing.
   1823 * cc: change cas to newcase (thanks Ron Minnich).
   1824 * crypto/openpgp/error: use Error in names of error impl types.
   1825 * crypto/rsa: change public exponent from 3 to 65537.
   1826 * crypto/tls: add Error method to alert.
   1827 * doc: add link to A Tour of Go in Japanese,
   1828 	add 'all' make rule to build all docs,
   1829 	refer to tour.golang.org instead of go-tour.appspot.com.
   1830 * exp/norm: fixed bug that crept in with moving to the new regexp.
   1831 * exp/ssh: fix length header leaking into channel data (thanks Dave Cheney).
   1832 * fmt: handle os.Error values explicity (as distinct from Stringer).
   1833 * gc: clean up printing,
   1834 	fix [568]g -V crash (thanks Mikio Hara),
   1835 	test + fix escape analysis bug.
   1836 * go/build: avoid os.Error in tests.
   1837 * go/doc: remove os.NewError anti-heuristic.
   1838 * go/parser: test and fix := scoping bug.
   1839 * gob: split uses of gobError, remove unnecessary embedding.
   1840 * gofix: test import insertion, deletion.
   1841 * goinstall: intelligent vcs selection for common sites (thanks Julian Phillips).
   1842 * gopack: change archive file name length back to 16.
   1843 * html: fix print argument in test,
   1844 	more parser improvements (thanks Andrew Balholm).
   1845 * json: properly handle nil slices (thanks Alexander Reece).
   1846 * math: improved accuracy for Sin and Cos (thanks Charles L. Dorian).
   1847 * misc/emacs: fix restoration of windows after gofmt (thanks Jan Newmarch).
   1848 * misc/vim: add rune keyword (thanks Jongmin Kim).
   1849 * misc/windows: can be used for amd64 (thanks Alex Brainman).
   1850 * net: document why we do not use SO_REUSEADDR on windows (thanks Alex Brainman).
   1851 * os: do not interpret 0-length read as EOF.
   1852 * pkg: remove .String() from some print arguments.
   1853 * rpc: avoid infinite loop on input error.
   1854 * runtime/pprof: document OS X being broken.
   1855 * runtime: lock the main goroutine to the main OS thread during init.
   1856 * spec: define that initialization is sequential.
   1857 * strconv: use better errors than os.EINVAL, os.ERANGE.
   1858 * syscall: fix Await msg on Plan 9 (thanks Andrey Mirtchovski).
   1859 * template: do not use error as stringer,
   1860 	fix error checking on execute without parse (thanks Scott Lawrence).
   1861 * test/alias.go: additional tests.
   1862 * test: error-related fixes.
   1863 * textproto: prevent long lines in HTTP headers from causing HTTP 400 responses.
   1864 * time: add RFC1123 with numeric timezone format (thanks Scott Lawrence).
   1865 </pre>
   1866 
   1867 <h2 id="2011-10-26">2011-10-26 (new rune type)</h2>
   1868 
   1869 <pre>
   1870 This snapshot introduces the rune type, an alias for int that
   1871 should be used for Unicode code points.
   1872 
   1873 A future release of Go (after Go 1) will change rune to be an
   1874 alias for int32 instead of int.  Using rune consistently is the way
   1875 to make your code build both before and after this change.
   1876 
   1877 To test your code for rune safety, you can rebuild the Go tree with
   1878 
   1879 	GOEXPERIMENT=rune32 ./all.bash
   1880 
   1881 which builds a compiler in which rune is an alias for int32 instead of int.
   1882 
   1883 Also, run govet on your code to identify methods that might need to have their
   1884 signatures updated.
   1885 </pre>
   1886 
   1887 <h2 id="2011-10-25">2011-10-25</h2>
   1888 
   1889 <pre>
   1890 * big: make SetString return nil if an error occurs,
   1891 	new Rat.Inv method,
   1892 	usable zero Rat values without need for explicit initialization.
   1893 * codereview: show LGTMs in hg p.
   1894 * crypto/x509: fix names in certificate generation.
   1895 * exp/ssh: add experimental ssh client,
   1896 	introduce Session to replace Cmd for interactive commands,
   1897 	server cleanups (thanks Dave Cheney).
   1898 * exp/types: fix crash in parseBasicType on unknown type.
   1899 * fmt: don't panic formatting nil interfaces (thanks Gustavo Niemeyer).
   1900 * go/ast, go/token: actually run tests; fix go/ast test.
   1901 * gotest: explicit -help flag, use $GCFLAGS like make does.
   1902 * govet: check canonical dynamic method signatures.
   1903 * html: improved parsing (thanks Andrew Balholm),
   1904 	parse &lt;select&gt; tags, parse and render comment nodes,
   1905 	remove the Tokenizer.ReturnComments option.
   1906 * http: Transport: with TLS InsecureSkipVerify, skip hostname check.
   1907 * misc/vim: add highlighting for delete (thanks Dave Cheney).
   1908 * net: do not set SO_REUSEADDR for windows (thanks Alex Brainman).
   1909 * os/inotify: move to exp/inotify (thanks Mikio Hara).
   1910 * runtime: include bootstrap m in mcpu accounting (thanks Hector Chu).
   1911 * syscall: use uintptr for Mount flags.
   1912 </pre>
   1913 
   1914 <h2 id="2011-10-18">2011-10-18</h2>
   1915 
   1916 <pre>
   1917 This weekly snapshot includes some language and package changes that may
   1918 require code changes. Please read these notes carefully, as there are many
   1919 changes and your code will likely be affected.
   1920 
   1921 The syntax for map deletion has been changed. Code that looks like:
   1922 	m[x] = 0, false
   1923 should be written as:
   1924 	delete(m, x)
   1925 The compiler still accepts m[x] = 0, false for now; even so, you can use gofix
   1926 to rewrite such assignments into delete(m, x).
   1927 
   1928 The Go compiler will reject a return statement without arguments when any of
   1929 the result variables has been shadowed. Code rejected as a result of this
   1930 change is likely to be buggy.
   1931 
   1932 Receive-only channels (&lt;-chan T) cannot be closed.
   1933 The compiler will diagnose such attempts.
   1934 
   1935 The first element of a map iteration is chosen at random. Code that depends on
   1936 iteration order will need to be updated.
   1937 
   1938 Goroutines may be run during program initialization.
   1939 
   1940 A string may be appended to a byte slice. This code is now legal:
   1941 	var b []byte
   1942 	var s string
   1943 	b = append(b, s...)
   1944 
   1945 The gotry command and its associated try package have been deleted.
   1946 It was a fun experiment that - in the end - didn't carry its weight.
   1947 
   1948 The gotype tool has been moved to exp/gotype and its associated go/types
   1949 package has been moved to exp/types. The deprecated go/typechecker package has
   1950 been deleted.
   1951 
   1952 The enbflint tool has been moved to pkg/exp/ebnflint and its associated ebnf
   1953 package has been moved to pkg/exp/ebnf.
   1954 
   1955 The netchan package has been moved to old/netchan.
   1956 
   1957 The http/spdy package has been moved to exp/spdy.
   1958 
   1959 The exp/datafmt package has been deleted.
   1960 
   1961 The container/vector package has been deleted. Slices are better:
   1962 	http://code.google.com/p/go-wiki/wiki/SliceTricks
   1963 
   1964 Other changes:
   1965 * 5l/6l/8l: correct ELFRESERVE diagnostic (thanks Anthony Martin).
   1966 * 6l/8l: support OS X code signing (thanks Mikkel Krautz).
   1967 * asn1: accept UTF8 strings as ASN.1 ANY values.
   1968 * big: handle aliasing correctly for Rat.SetFrac.
   1969 * build: add missing nuke target (thanks Anthony Martin),
   1970 	catch future accidental dependencies to exp or old packages,
   1971 	more robustly detect gold 2.20 (thanks Christopher Wedgwood),
   1972 	pass $GCFLAGS to compiler,
   1973 	stop on failed deps.bash.
   1974 * crypto/tls: add 3DES ciphersuites,
   1975 	add server side SNI support,
   1976 	fetch root CA from Windows store (thanks Mikkel Krautz),
   1977 	fetch root certificates using Mac OS API (thanks Mikkel Krautz),
   1978 	fix broken looping code in windows root CA fetcher (thanks Mikkel Krautz),
   1979 	more Unix root certificate locations.
   1980 * crypto/x509: add code for dealing with PKIX public keys,
   1981 	keep the raw Subject and Issuer.
   1982 * csv: fix overly aggressive TrimLeadingSpace.
   1983 * exp/ssh: general cleanups for client support (thanks Dave Cheney).
   1984 * exp/template/html: fix bug in cssEscaper.
   1985 * exp/terminal: split terminal handling from exp/ssh.
   1986 * exp/winfsnotify: filesystem watcher for Windows (thanks Hector Chu).
   1987 * fmt: fix test relying on map iteration order.
   1988 * gc: changes to export format in preparation for inlining,
   1989 	pass FlagNoPointers to runtime.new,
   1990 	preserve uint8 and byte distinction in errors and import data,
   1991 	stricter multiple assignment + test,
   1992 	treat uintptr as potentially containing a pointer.
   1993 * go/scanner: remove AllowIllegalChars mode.
   1994 * go/token: document deserialization property.
   1995 * gob: avoid one copy for every message written.
   1996 * godefs: add enum/const testdata (thanks Dave Cheney).
   1997 * godoc: generate package toc in template, not in JavaScript,
   1998 	show "unexported" declarations when executing "godoc builtin",
   1999 	show correct source name with -path.
   2000 * gofix: make fix order explicit, add mapdelete.
   2001 * gofmt: fix //line handling,
   2002 	disallow rewrites for incomplete programs.
   2003 * gotest: avoid conflicts with the name of the tested package (thanks Esko Luontola),
   2004 	test example code.
   2005 * goyacc: clean up after units (thanks Anthony Martin),
   2006 	make more gofmt-compliant.
   2007 * html: add a Render function, various bug fixes and improvements,
   2008 	parser improvements (thanks Andrew Balholm).
   2009 * http: DoS protection: cap non-Handler Request.Body reads,
   2010 	RoundTrippers shouldn't mutate Request,
   2011 	avoid panic caused by nil URL (thanks Anthony Martin),
   2012 	fix read timeouts and closing,
   2013 	remove Request.RawURL.
   2014 * image/tiff: implement PackBits decoding (thanks Benny Siegert).
   2015 * ld: fix "cannot create 8.out.exe" (thanks Jaroslavas Poepko).
   2016 * misc/emacs: add a "godoc" command, like M-x man (thanks Evan Martin).
   2017 * misc/swig: delete binaries (thanks Anthony Martin).
   2018 * misc/windows: automated toolchain packager (thanks Joe Poirier).
   2019 * net/windows: implement ip protocol name to number resolver (thanks Alex Brainman).
   2020 * net: add File method to IPConn (thanks Mikio Hara),
   2021 	allow LookupSRV on non-standard DNS names,
   2022 	fix "unexpected socket family" error from WriteToUDP (thanks Albert Strasheim),
   2023 	fix socket leak in case of Dial failure (thanks Chris Farmiloe),
   2024 	remove duplicate error information in Dial (thanks Andrey Mirtchovski),
   2025 	return error from CloseRead and CloseWrite (thanks Albert Strasheim),
   2026 	skip ICMP test on Windows too unless uid 0.
   2027 * reflect: disallow Interface method on Value obtained via unexported name,
   2028 	make unsafe use of SliceHeader gc-friendly.
   2029 * rpc: don't panic on write error.
   2030 * runtime: faster strings,
   2031 	fix crash if user sets MemProfileRate=0,
   2032 	fix crash when returning from syscall during gc (thanks Hector Chu),
   2033 	fix memory leak in parallel garbage collector.
   2034 * scanner: invalidate scanner.Position when no token is present.
   2035 * spec: define order of multiple assignment.
   2036 * syscall/windows: dll function load and calling changes (thanks Alex Brainman).
   2037 * syscall: add #ifdefs to fix the manual corrections in ztypes_linux_arm.go (thanks Dave Cheney),
   2038 	adjust Mount to accommodate stricter FS implementations.
   2039 * testing: fix time reported for failing tests.
   2040 * utf8: add Valid and ValidString.
   2041 * websocket: tweak hybi ReadHandshake to support Firefox (thanks Luca Greco).
   2042 * xml: match Marshal's XMLName behavior in Unmarshal (thanks Chris Farmiloe).
   2043 </pre>
   2044 
   2045 <h2 id="2011-10-06">2011-10-06</h2>
   2046 
   2047 <pre>
   2048 This weekly snapshot includes changes to the io, image, and math packages that
   2049 may require changes to client code.
   2050 
   2051 The io package's Copyn function has been renamed to CopyN.
   2052 
   2053 The math package's Fabs, Fdim, Fmax, Fmin and Fmod functions
   2054 have been renamed to Abs, Dim, Max, Min, and Mod.
   2055 
   2056 Parts of the image package have been moved to the new image/color package.
   2057 The spin-off renames some types. The new names are simply better:
   2058 	image.Color              -&gt; color.Color
   2059 	image.ColorModel         -&gt; color.Model
   2060 	image.ColorModelFunc     -&gt; color.ModelFunc
   2061 	image.PalettedColorModel -&gt; color.Palette
   2062 	image.RGBAColor          -&gt; color.RGBA
   2063 	image.RGBAColorModel     -&gt; color.RGBAModel
   2064 	image.RGBA64Color        -&gt; color.RGBA64
   2065 	image.RGBA64ColorModel   -&gt; color.RGBA64Model
   2066 (similarly for NRGBAColor, GrayColorModel, etc)
   2067 The image.ColorImage type stays in the image package, but is renamed:
   2068 	image.ColorImage -&gt; image.Uniform
   2069 The image.Image implementations (image.RGBA, image.RGBA64, image.NRGBA,
   2070 image.Alpha, etc) do not change their name, and gain a nice symmetry:
   2071 an image.RGBA is an image of color.RGBA, etc.
   2072 The image.Black, image.Opaque uniform images remain unchanged (although their
   2073 type is renamed from image.ColorImage to image.Uniform).
   2074 The corresponding color types (color.Black, color.Opaque, etc) are new.
   2075 Nothing in the image/ycbcr is renamed yet. The ycbcr.YCbCrColor and
   2076 ycbcr.YCbCrImage types will eventually migrate to color.YCbCr and image.YCbCr,
   2077 at a later date.
   2078 
   2079 * 5g/6g/8g: fix loop finding bug, fix -f(), registerize variables again.
   2080 * 5l/6l/8l: add a DT_DEBUG dynamic tag to a dynamic ELF binary.
   2081 * archive/zip: read and write unix file modes (thanks Gustavo Niemeyer).
   2082 * build: clear execute bit from source files (thanks Mikio Hara).
   2083 * bytes: add EqualFold.
   2084 * cgo: allow Windows path characters in flag directives (thanks Joe Poirier),
   2085 	support for mingw-w64 4.5.1 and newer (thanks Wei Guangjing).
   2086 * codereview: extra repo sanity check,
   2087 	fix for Mercurial 1.9.2,
   2088 	fix hg change in Windows console (thanks Yasuhiro Matsumoto).
   2089 * crypto/elliptic: use %x consistently in error print.
   2090 * doc/spec: remove notes about gccgo limitations, now fixed.
   2091 * doc: add 'Debugging Go code with GDB' tutorial,
   2092 	fix memory model read visibility bug.
   2093 * encoding/binary: PutX functions require buffer of sufficient size,
   2094 	added benchmarks, support for varint encoding.
   2095 * exec: add Command.ExtraFiles.
   2096 * exp/sql{,/driver}: new database packages.
   2097 * exp/ssh: move common code to common.go (thanks Dave Cheney).
   2098 * exp/template/html: work continues.
   2099 * fmt: replace channel cache with slice.
   2100 * gc: limit helper threads based on ncpu.
   2101 * go/doc, godoc, gotest: support for reading example documentation.
   2102 * go: documentation and skeleton implementation of new command.
   2103 * gob: protect against invalid message length,
   2104 	allow sequential decoders on the same input stream.
   2105 * hgpatch: do not use hg exit status (thanks Yasuhiro Matsumoto).
   2106 * http: add Location method to Response,
   2107 	don't send a 400 Bad Request after a client shutdown.
   2108 * index/suffixarray: 4.5x faster index serialization (to memory).
   2109 * io/ioutil: add a comment on why devNull is a ReaderFrom.
   2110 * json: use strings.EqualFold instead of strings.ToLower.
   2111 * misc/emacs: fix indent bug.
   2112 * net: add shutdown: TCPConn.CloseWrite and CloseRead.
   2113 * net: use AF_UNSPEC instead of individual address family (thanks Mikio Hara).
   2114 * path/filepath: added Rel as the complement of Abs (thanks Gustavo Niemeyer).
   2115 * pkg/syscall: add Mkfifo for linux platforms.
   2116 * regexp: move to old/regexp, replace with exp/regexp, speedups.
   2117 * runtime/gdb: fix pretty printing of channels,
   2118 	gracefully handle not being able to find types.
   2119 * runtime: check for nil value pointer in select syncsend case,
   2120 	faster finalizers,
   2121 	fix malloc sampling bug,
   2122 	fix map memory leak,
   2123 	fix spurious deadlock reporting,
   2124 	fix usleep on linux/386 and re-enable parallel gc (thanks Hector Chu),
   2125 	parallelize garbage collector mark + sweep.
   2126 * strconv: faster Unquote in common case.
   2127 * strings: add EqualFold, Replacer, NewReplacer.
   2128 * suffixarray: add benchmarks for construction (thanks Eric Eisner).
   2129 * syscall: add GetsockoptByte, SetsockoptByte for openbsd (thanks Mikio Hara),
   2130 	add IPv4 ancillary data for linux (thanks Mikio Hara),
   2131 	mark stdin, stdout, stderr non-inheritable by child processes (thanks Alex Brainman),
   2132 	mksyscall_windows.pl creates non-syscall packages (thanks Jaroslavas Poepko),
   2133 	update multicast socket options (thanks Mikio Hara).
   2134 * testing: support for running tests in parallel (thanks Miki Tebeka).
   2135 * time: make month/day name comparisons case insenstive.
   2136 * unicode: fix make tables.
   2137 * vim: Send GoFmt errors to a location list (thanks Paul Sbarra).
   2138 * websocket: add hybi-13 support, add mutex to make websocket full-duplex.
   2139 </pre>
   2140 
   2141 <h2 id="2011-09-21">2011-09-21</h2>
   2142 
   2143 <pre>
   2144 This weekly contains several improvements, bug fixes, and new packages.
   2145 
   2146 * archive/tar: document Header fields and Type flags (thanks Mike Rosset).
   2147 * bytes: fix Replace so it actually copies (thanks Gustavo Niemeyer).
   2148 * cgo: use GOARCH from the environment (thanks Jaroslavas Poepko).
   2149 * codereview: save CL messages in $(hg root)/last-change.
   2150 * crypto/bcrypt: new package (thanks Jeff Hodges).
   2151 * crypto/blowfish: exposing the blowfish key schedule (thanks Jeff Hodges).
   2152 * doc: link to golang-france.
   2153 * doc: when configuring gold for gccgo, use --enable-gold=default.
   2154 * exp/norm: changed trie to produce smaller tables.
   2155 * exp/ssh: new package,
   2156 	refactor halfConnection to transport (thanks Dave Cheney).
   2157 * exp/template/html: more fixes and improvements.
   2158 * filepath: fix Glob to return no error on nonmatching patterns.
   2159 * gc: disallow invalid map keys,
   2160 	handle complex CONVNOP.
   2161 * gob: allocation fixes.
   2162 * godoc: simplify internal FileSystem interface.
   2163 * http/cgi: clean up environment (thanks Yasuhiro Matsumoto).
   2164 * http: always include Content-Length header, even for 0 (thanks Dave Grijalva),
   2165 	check explicit wrong Request.ContentLength values,
   2166 	fix TLS handshake blocking server accept loop,
   2167 	prevent DumpRequest from adding implicit headers.
   2168 * httptest: add NewUnstartedServer.
   2169 * json: clearer Unmarshal doc,
   2170 	skip nil in UnmarshalJSON and (for symmetry) MarshalJSON.
   2171 * net: use /etc/hosts first when looking up IP addresses (thanks Andrey Mirtchovski).
   2172 * reflect: add comment about the doubled semantics of Value.String.
   2173 * runtime: implement pprof support for windows (thanks Hector Chu),
   2174 	increase stack system space on windows/amd64 (thanks Hector Chu).
   2175 * suffixarray: generate less garbage during construction (thanks Eric Eisner),
   2176 	improved serialization code using gob instead of encoding/binary.
   2177 * sync/atomic: replace MFENCE with LOCK XADD.
   2178 </pre>
   2179 
   2180 <h2 id="2011-09-16">2011-09-16</h2>
   2181 
   2182 <pre>
   2183 This weekly snapshot includes changes to the image, path/filepath, and time
   2184 packages. Code that uses these packages may need to be updated.
   2185 
   2186 The image package's NewX functions (NewRGBA, NewNRGBA, etc) have been changed
   2187 to take a Rectangle argument instead of a width and height.
   2188 Gofix can make these changes automatically.
   2189 
   2190 The path/filepath package's Walk function has been changed to take a WalkFunc
   2191 function value instead of a Visitor interface value. WalkFunc is like the
   2192 Visitor's VisitDir and VisitFile methods except it handles both files and
   2193 directories:
   2194 	func(path string, info *os.FileInfo, err os.Error) os.Error
   2195 To skip walking a directory (like returning false from VisitDir) the WalkFunc
   2196 must return SkipDir.
   2197 
   2198 The time package's Time struct's Weekday field has been changed to a method.
   2199 The value is calculated on demand, avoiding the need to re-parse
   2200 programmatically-constructed Time values to find the correct weekday.
   2201 
   2202 There are no gofixes for the filepath or time API changes, but instances of the
   2203 old APIs will be caught by the compiler. The Weekday one is easy to update by
   2204 hand. The Walk one may take more consideration, but will have fewer instances
   2205 to fix.
   2206 
   2207 * build: add build comments to core packages.
   2208 * codereview: Mercurial 1.9 fix for hg diff @nnn.
   2209 * crypto/tls: handle non-TLS more robustly,
   2210 	support SSLv3.
   2211 * debug/elf: permit another case of SHT_NOBITS section overlap in test.
   2212 * exm/template/html: more work on this auto-escaping HTML template package.
   2213 * exp/norm: added regression test tool for the standard Unicode test set.
   2214 * exp/regexp/syntax: fix invalid input parser crash,
   2215 	import all RE2 parse tests + fix bugs.
   2216 * exp/regexp: add MustCompilePOSIX, CompilePOSIX, leftmost-longest matching.
   2217 * flag: make zero FlagSet useful.
   2218 * gc: clean up if grammar.
   2219 * go/build: handle cgo, // +build comments.
   2220 * go/printer: use panic/defer instead of goroutine for handling errors.
   2221 * go/token: support to serialize file sets.
   2222 * godoc, suffixarray: switch to exp/regexp.
   2223 * godoc: show packages matching a query at the top,
   2224 	support for complete index serialization,
   2225 	use go/build to find files in a package.
   2226 * gofmt: accept program fragments on standard input, add else test.
   2227 * http/cgi: add openbsd environment configuration.
   2228 * http: document that Response.Body is non-nil.
   2229 * image/png: don't use a goroutine to decode, to permit decode during init.
   2230 * json: if a field's tag is "-", ignore the field for encoding and decoding.
   2231 * ld: grow dwarf includestack on demand.
   2232 * net, syscall: implement SetsockoptIPMReq(), and
   2233 	move to winsock v2.2 for multicast support (thanks Paul Lalonde).
   2234 * net: add a LookupTXT function.
   2235 * os: os.RemoveAll to check for wboth error codes on Windows (thanks Jaroslavas Poepko).
   2236 * path/filepath: fix Visitor doc (thanks Gustavo Niemeyer),
   2237 	make UNC file names work (thanks Yasuhiro Matsumoto).
   2238 * runtime: optimizations to channels on Windows (thanks Hector Chu),
   2239 	syscall to return both AX and DX for windows/386 (thanks Alex Brainman).
   2240 * sync/atomic: add 64-bit Load and Store.
   2241 * syscall: add route flags for linux (thanks Mikio Hara).
   2242 * test: add test for inheriting private method from anonymous field.
   2243 * websocket: fix infinite recursion in Addr.String() (thanks Tarmigan Casebolt),
   2244 	rename websocket.WebSocketAddr to *websocket.Addr.
   2245 </pre>
   2246 
   2247 <h2 id="2011-09-07">2011-09-07</h2>
   2248 
   2249 <pre>
   2250 This weekly snapshot consists of improvements and bug fixes, including fixes
   2251 for issues introduced by escape analysis changes in the gc compiler.
   2252 
   2253 * build: clear execute bit from Go files (thanks Mike Rosset),
   2254 	error out if problem with sudo.bash /usr/local/bin (thanks Mike Rosset).
   2255 * exp/norm: add Reader and Writer,
   2256 	performance improvements of quickSpan.
   2257 * exp/regexp: bug fixes and RE2 tests.
   2258 * exp/template/html: string replacement refactoring,
   2259 	tweaks to js{,_test}.go.
   2260 * gc: add -p flag to catch import cycles earlier,
   2261 	fix label recursion bugs,
   2262 	fix zero-length struct eval,
   2263 	zero stack-allocated slice backing arrays,
   2264 * gc, ld: fix Windows file paths (thanks Hector Chu).
   2265 * go/parser: accept corner cases of signature syntax.
   2266 * gobuilder: ignore _test.go files when looking for docs, more logging.
   2267 * godoc: minor tweaks for App Engine use.
   2268 * gofix: do not convert url in field names (thanks Gustavo Niemeyer).
   2269 * gofmt: indent multi-line signatures.
   2270 * gopprof: regexp fixes (thanks Hector Chu).
   2271 * image/png: check zlib checksum during Decode.
   2272 * libmach: fix incorrect use of memset (thanks Dave Cheney).
   2273 * misc/goplay: fix template output.
   2274 * net: ParseCIDR returns IPNet instead of IPMask (thanks Mikio Hara),
   2275 	sync CIDRMask code, doc.
   2276 * os: use GetFileAttributesEx to implement Stat on windows (thanks Alex Brainman).
   2277 * runtime: fix openbsd 386 raisesigpipe,
   2278 	implement exception handling on windows/amd64 (thanks Hector Chu),
   2279 	test for concurrent channel consumers (thanks Christopher Wedgwood).
   2280 * sort: use heapsort to bail out quicksort (thanks Ziad Hatahet).
   2281 * sync/atomic: add LoadUintptr, add Store functions.
   2282 * syscall: update routing message attributes handling (thanks Mikio Hara).
   2283 * template: fix deadlock,
   2284 	indirect or dereference function arguments if necessary,
   2285 	slightly simplify the test for assignability of arguments.
   2286 * url: handle ; in ParseQuery.
   2287 * websocket: fix incorrect prints found by govet (thanks Robert Hencke).
   2288 </pre>
   2289 
   2290 <h2 id="2011-09-01">2011-09-01</h2>
   2291 
   2292 <pre>
   2293 This weekly contains performance improvements and bug fixes.
   2294 
   2295 The gc compiler now does escape analysis, which improves program performance
   2296 by placing variables on the call stack instead of the heap when it is safe to
   2297 do so.
   2298 
   2299 The container/vector package is deprecated and will be removed at some point
   2300 in the future.
   2301 
   2302 Other changes:
   2303 * archive/tar: support symlinks. (thanks Mike Rosset)
   2304 * big: fix nat.scan bug. (thanks Evan Shaw)
   2305 * bufio: handle a "\r\n" that straddles the buffer.
   2306 	add openbsd.
   2307 	avoid redundant bss declarations.
   2308 	fix unused parameters.
   2309 	fix windows/amd64 build with newest mingw-w64. (thanks Hector Chu)
   2310 * bytes: clarify that NewBuffer is not for beginners.
   2311 * cgo: explain how to free something.
   2312 	fix GoBytes. (thanks Gustavo Niemeyer)
   2313 	fixes callback for windows amd64. (thanks Wei Guangjing)
   2314 	note that CString result must be freed. (thanks Gustavo Niemeyer)
   2315 * cov: remove tautological #defines. (thanks Lucio De Re)
   2316 * dashboard: yet another utf-8 fix.
   2317 * doc/codelab/wiki: fix Makefile.
   2318 * doc/progs: fix windows/amd64. (thanks Jaroslavas Poepko)
   2319 * doc/tmpltohtml: update to new template package.
   2320 * doc: emphasize that environment variables are optional.
   2321 * effective_go: convert to use tmpltohtml.
   2322 * exp/norm: reduced the size of the byte buffer used by reorderBuffer by half by reusing space when combining.
   2323 	a few minor fixes to support the implementation of norm.
   2324 	added implementation for []byte versions of methods.
   2325 * exp/template/html: add some tests for ">" attributes.
   2326 	added handling for URL attributes.
   2327 	differentiate URL-valued attributes (such as href).
   2328 	reworked escapeText to recognize attr boundaries.
   2329 * exp/wingui: made compatible with windows/amd64. (thanks Jaroslavas Poepko)
   2330 * flag: add Parsed, restore Usage.
   2331 * gc: add openbsd.
   2332 	escape analysis.
   2333 	fix build on Plan 9. (thanks Lucio De Re)
   2334 	fix div bug.
   2335 	fix pc/line table. (thanks Julian Phillips)
   2336 	fix some spurious leaks.
   2337 	make static initialization more static.
   2338 	remove JCXZ; add JCXZW, JCXZL, and JCXZQ instructions. (thanks Jaroslavas Poepko)
   2339 	shuffle #includes.
   2340 	simplify escape analysis recursion.
   2341 	tweak and enable escape analysis.
   2342 * go/ast cleanup: base File/PackageExports on FilterFile/FilterPackage code.
   2343 	adjustments to filter function.
   2344 	fix ast.MergePackageFiles to collect infos about imports. (thanks Sebastien Binet)
   2345 	generalize ast.FilterFile.
   2346 * go/build: add test support & use in gotest.
   2347 	separate test imports out when scanning. (thanks Gustavo Niemeyer)
   2348 * go/parser: fix type switch scoping.
   2349 	fix type switch scoping.
   2350 * gob: explain that Debug isn't useful unless it's compiled in.
   2351 * gobuilder: increase log limit.
   2352 * godashboard: fix utf-8 in user names.
   2353 * godoc: first step towards reducing index size.
   2354 	add dummy playground.js to silence godoc warning at start-up.
   2355 	added systematic throttling to indexing goroutine.
   2356 	fix bug in zip.go.
   2357 	support for reading/writing (splitted) index files.
   2358 	use virtual file system when generating package synopses.
   2359 * gofix: forgot to rename the URL type.
   2360 	osopen: fixed=true when changing O_CREAT. (thanks Tarmigan Casebolt)
   2361 * goinstall: error out with paths that end with '/'. (thanks Tarmigan Casebolt)
   2362 	report lack of $GOPATH on errors. (thanks Gustavo Niemeyer)
   2363 	select the tag that is closest to runtime.Version.
   2364 * gotry: add missing $. (thanks Tarmigan Casebolt)
   2365 * http: add MaxBytesReader to limit request body size.
   2366 	add file protocol transport.
   2367 	adjust test threshold for larger suse buffers.
   2368 	delete error kludge.
   2369 	on invalid request, send 400 response.
   2370 	return 413 instead of 400 when the request body is too large. (thanks Dave Cheney)
   2371 	support setting Transport's TLS client config.
   2372 * image/tiff: add a decode benchmark. (thanks Benny Siegert)
   2373 	decoder optimization. (thanks Benny Siegert)
   2374 * image: add PalettedImage interface, and make image/png recognize it. (thanks Jaroslavas Poepko)
   2375 * io: add TeeReader. (thanks Hector Chu)
   2376 * json: add struct tag option to wrap literals in strings.
   2377 	calculate Offset for Indent correctly. (thanks Jeff Hodges)
   2378 	fix decode bug with struct tag names with ,opts being ignored.
   2379 * ld: handle Plan 9 ar format. (thanks Lucio De Re)
   2380 	remove duplicate bss definitions.
   2381 * libmach: support reading symbols from Windows .exe for nm. (thanks Mateusz Czapliski)
   2382 * math: fix Pow10 loop. (thanks Volker Dobler)
   2383 * mime: ParseMediaType returns os.Error now, not a nil map.
   2384 	media type formatter. (thanks Pascal S. de Kloe)
   2385 	text charset defaults. (thanks Pascal S. de Kloe)
   2386 * misc/dashboard: remove limit for json package list.
   2387 * misc/emacs: refine label detection.
   2388 * net: add ParseMAC function. (thanks Paul Borman)
   2389 	change the internal form of IPMask for IPv4. (thanks Mikio Hara)
   2390 	disable "tcp" test on openbsd.
   2391 	fix windows build. (thanks Alex Brainman)
   2392 	join and leave a IPv6 group address, on a specific interface. (thanks Mikio Hara)
   2393 	make use of IPv4len, IPv6len. (thanks Mikio Hara)
   2394 	move internal string manipulation routines to parse.go. (thanks Mikio Hara)
   2395 * os: disable Hostname test on OpenBSD.
   2396 	fix WNOHANG Waitmsg. (thanks Gustavo Niemeyer)
   2397 * reflect: add Value.Bytes, Value.SetBytes methods.
   2398 * rpc: add benchmark for async rpc calls.
   2399 * runtime: add openbsd 386 defs.h.
   2400 	add runtime support for openbsd 386.
   2401 	add runtime prefix to showframe.
   2402 	ctrlhandler for windows amd64. (thanks Wei Guangjing)
   2403 	fix stack cleanup on windows/amd64. (thanks Hector Chu)
   2404 	fix void warnings.
   2405 	go interface to cdecl calbacks. (thanks Jaroslavas Poepko)
   2406 	handle string + char literals in goc2c.
   2407 	make arm work on Ubuntu Natty qemu.
   2408 	openbsd thread tweaks.
   2409 	simplify stack traces.
   2410 	speed up cgo calls. (thanks Alex Brainman)
   2411 	use cgo runtime functions to call windows syscalls. (thanks Alex Brainman)
   2412 	windows/amd64 callbacks fixed and syscall fixed to allow using it in callbacks. (thanks Jaroslavas Poepko)
   2413 * strconv: put decimal on stack.
   2414 * spec: update section on Implementation Differences.
   2415 * syscall: SOMAXCONN should be 0x7fffffff at winsock2. (thanks Yasuhiro Matsumoto)
   2416 	add openbsd 386.
   2417 	handle RTM_NEWROUTE in ParseNetlinkRouteAttr on Linux. (thanks Albert Strasheim)
   2418 	handle routing entry in ParseRoutingSockaddr on BSD variants. (thanks Mikio Hara)
   2419 	openbsd amd64 syscall support.
   2420 	use the vdso page on linux x86 for faster syscalls instead of int $0x80. (thanks Yuval Pavel Zholkover)
   2421 * template/parse: give if, range, and with a common representation.
   2422 * template: grammar fix for template documentation. (thanks Bill Neubauer)
   2423 	range over channel.
   2424 	remove else and end nodes from public view.
   2425 * test: put GOROOT/bin before all others in run.
   2426 * time: fix Plan 9 build. (thanks Fazlul Shahriar)
   2427 	fix zone during windows test.
   2428 * type switches: test for pathological case.
   2429 * version.bash: update VERSION on -save if already present. (thanks Gustavo Niemeyer)
   2430 * websocket: implements new version of WebSocket protocol. (thanks Fumitoshi Ukai)
   2431 * windows/386: clean stack after syscall. (thanks Jaroslavas Poepko)
   2432 * xml: marshal "parent>child" tags correctly. (thanks Ross Light)
   2433 </pre>
   2434 
   2435 <h2 id="2011-08-17">2011-08-17 (<a href="release.html#r60">base for r60</a>)</h2>
   2436 
   2437 <pre>
   2438 This weekly contains some package re-shuffling. Users of the http and
   2439 template packages may be affected.
   2440 
   2441 This weekly replaces the template package with exp/template.
   2442 The original template package is still available as old/template.
   2443 The old/template package is deprecated and will be removed at some point
   2444 in the future. The Go tree has been updated to use the new template package.
   2445 We encourage users of the old template package to switch to the new one.
   2446 Code that uses template or exp/template will need to change
   2447 its import lines to "old/template" or "template", respectively.
   2448 
   2449 The http package's URL parsing and query escaping code (such as ParseURL and
   2450 URLEscape) has been moved to the new url package, with several simplifications
   2451 to the names. Client code can be updated automatically with gofix.
   2452 
   2453 * asn1: support unmarshaling structs with int32 members (thanks Dave Cheney).
   2454 * build: allow builds without cgo or hg,
   2455 	support versioning without hg (thanks Gustavo Niemeyer).
   2456 * builtin: add documentation for builtins.
   2457 * cgo: omit duplicate symbols in writeDefs (thanks Julian Phillips).
   2458 * misc: add support for OpenBSD.
   2459 * doc/codewalk: new Markov chain codewalk.
   2460 * exp/norm: added trie lookup code and associated tests,
   2461 	generate trie struct in triegen.go for better encapsulation,
   2462 	implementation of decomposition and composing functionality.
   2463 * exp/template/html: new experimental package for auto-escaping HTML templates.
   2464 * exp/template: don't panic on range of nil interface,
   2465 	rename Parse*File and Parse*Files for clarity,
   2466 	support field syntax on maps (thanks Gustavo Niemeyer), and
   2467 	many other fixes and changes.
   2468 * gc: implement nil chan and nil map support.
   2469 * go/parser: range clause and type literal fixes.
   2470 * godoc: show all top-level decls for (fake) package builtin.
   2471 * goinstall: really report all newly-installed public packages.
   2472 * html: parse more malformed tags.
   2473 * http: fix ParseMultipartForm after MultipartReader error,
   2474 	fix side effects in DefaultTransport's RoundTrip method (thanks Dave Grijalva).
   2475 * json: fix []unmarshaler case.
   2476 * ld: make addaddrplus4 static (thanks Lucio De Re).
   2477 * syscall: move multicast address handling to the net package.
   2478 * net: Plan 9 support (thanks Fazlul Shahriar),
   2479 	add SetTimeout to Listener interface (thanks Aleksandar Dezelin),
   2480 	add multicast stubs for OpenBSD,
   2481 	return correct local address for an accepted TCP connection (thanks Mikio Hara).
   2482 * reflect: panic on Invalid Interface call (thanks Gustavo Niemeyer).
   2483 * rpc: implement ServeRequest to synchronously serve a single request,
   2484 	make Server.Mutex unexported.
   2485 * runtime: better checks for syscall.NewCallback parameter (thanks Alex Brainman),
   2486 	correct SEH installation during callbacks (thanks Alex Brainman),
   2487 	fix GC bitmap corruption,
   2488 	fix pseudo-randomness on some selects (thanks Gustavo Niemeyer).
   2489 * syscall: make LazyDLL/LazyProc.Mutex unexported.
   2490 * test: allow multiple patterns in errchk,
   2491 	new nil semantics.
   2492 * time: take fractional seconds even if not in the format string.
   2493 * url: new package.
   2494 * utf8: rename some internal constants to remove leading underscores.
   2495 * xml: escape string chardata in xml.Marshal.
   2496 </pre>
   2497 
   2498 <h2 id="2011-08-10">2011-08-10</h2>
   2499 
   2500 <pre>
   2501 This weekly contains performance improvements and bug fixes.
   2502 
   2503 There are no outward-facing changes, but imports of the old-style
   2504 container/vector package have also been removed from the core library (thanks
   2505 John Asmuth, Kyle Consalus).
   2506 
   2507 Other changes:
   2508 
   2509 * 5g: fix set but not used error (thanks Dave Cheney).
   2510 * cmd/ld: Corrected mismatched print formats and variables (thanks Lucio De Re).
   2511 * errchk: add -0 flag.
   2512 * exp/norm: fix build by adding a test placeholder,
   2513 	maketables tool for generating tables for normalization.
   2514 * exp/template: bug fixes,
   2515 	ensure that a valid Set is returned even on error (thanks Roger Peppe),
   2516 	make index on maps return zero when key not present (thanks Roger Peppe),
   2517 	split the parse tree into a separate package exp/template/parse,
   2518 	add url query formatting filter.
   2519 * faq: lots of small tweaks plus a couple of new discussions,
   2520 	variant types, unions.
   2521 * fmt: call UpdateMemStats in malloc counter.
   2522 * go/build: use GOBIN as binary path for GOROOT.
   2523 * gob: add UpdateMemStats calls to malloc counter,
   2524 	avoid a couple of init-time allocations,
   2525 	don't invoke GobEncoder on zero values.
   2526 * gofmt: update test script so 'make test' succeeds.
   2527 * html: parse doctype tokens; merge adjacent text nodes.
   2528 * http: add more MPEG-4 MIME types to sniffer, and disable MP4 sniffing,
   2529 	add test to serve content in index.html (thanks Yasuhiro Matsumoto),
   2530 	configurable and default request header size limit,
   2531 	correct format flags when printing errors in tests (thanks Alex Brainman),
   2532 	correct path to serve index.html (thanks Yasuhiro Matsumoto),
   2533 * ld: add one empty symbol into pe to make dumpbin works (thanks Wei Guangjing),
   2534 	fail linking if the top-level package is not main.
   2535 * misc/vim: godoc command (thanks Yasuhiro Matsumoto).
   2536 * net: add support for openbsd (thanks Joel Sing),
   2537 	fix /proc/net/igmp,igmp6 reading bug on linux (thanks Mikio Hara),
   2538 	implement windows LookupMX and LookupAddr (thanks Mikio Hara),
   2539 	sort SRV records before returning from LookupSRV (thanks Alex Brainman),
   2540 * os: add support for openbsd (thanks Joel Sing).
   2541 * runtime: add more specialized type algorithms,
   2542 	correct Note documentation,
   2543 	faster chan creation on Linux/FreeBSD/Plan9,
   2544 	openbsd amd64 runtime support (thanks Joel Sing),
   2545 	remove unnecessary locking (thanks Hector Chu).
   2546 * scanner: correct error position for illegal UTF-8 encodings.
   2547 * syscall: delay load of dll functions on Windows (thanks Alex Brainman),
   2548 	move BSD mmap syscall (thanks Joel Sing),
   2549 	update routing message support for BSD variants (thanks Mikio Hara).
   2550 * test/bench: note changes after recent improvements to locking and runtime.
   2551 * time: add nanoseconds to the Time structure,
   2552 	parse and format fractional seconds.
   2553 </pre>
   2554 
   2555 <h2 id="2011-07-29">2011-07-29</h2>
   2556 
   2557 <pre>
   2558 This weekly contains performance improvements and many bug fixes.
   2559 
   2560 * 6l: OpenBSD support.
   2561 * archive/zip: handle zip files with more than 65535 files,
   2562 	more efficient reader and bug fix.
   2563 * big: refine printf formatting and optimize string conversion.
   2564 * build: fixes for mingw-w64 (thanks Wei Guangjing),
   2565 	miscellaneous fixes.
   2566 * cgo: add GoBytes, fix gmp example.
   2567 * exp/norm: API for normalization library.
   2568 * exp/regexp: implement regexp API using exp/regexp/syntax.
   2569 * exp/template: more tweaks and fixes, convert the tree to use exp/template.
   2570 * fmt: handle precision 0 format strings in standard way.
   2571 * gc: a raft of bug fixes.
   2572 * go/parser: report illegal label declarations at ':'.
   2573 * gob: send empty but non-nil maps.
   2574 * godoc: allow form feed in text files,
   2575 	app engine configuration and updated documentation.
   2576 * goinstall: abort and warn when using any url scheme, not just 'http://',
   2577 	write to goinstall.log in respective GOPATH.
   2578 * html: handle character entities without semicolons (thanks Andrew Balholm),
   2579 	parse misnested formatting tags according to the HTML5 spec,
   2580 	sync html/testdata/webkit with upstream WebKit.
   2581 * http: content-type sniffing,
   2582 	make serveFile redirects relative (thanks Andrew Balholm),
   2583 	other fixes.
   2584 * image/tiff: Do not panic when RowsPerStrip is missing (thanks Benny Siegert).
   2585 * io/ioutil: improve performance of ioutil.Discard (thanks Mike Solomon).
   2586 * ld: detect all import cycles,
   2587 	ldpe fixes (thanks Wei Guangjing),
   2588 	remove cseekend and redo pe writing (thanks Alex Brainman),
   2589 	remove overlap of ELF sections on dynamic binaries (thanks Gustavo Niemeyer).
   2590 * net/textproto: avoid 1 copy in ReadLine, ReadContinuedLine.
   2591 * net: fix memory corruption in windows *netFD.ReadFrom (thanks Alex Brainman).
   2592 * runtime: faster entersyscall/exitsyscall,
   2593 	fix scheduler races (thanks Hector Chu),
   2594 	higher goroutine arg limit, clearer error,
   2595 	parallelism-related performance optimizations and fixes,
   2596 	replace byte-at-a-time zeroing loop with memclr (thanks Quan Yong Zhai).
   2597 * sort: fix Float64Slice sort; NaN smallest value (thanks Florian Uekermann).
   2598 * src: removed some uses of container/vector (thanks John Asmuth).
   2599 * sync: improve Once fast path.
   2600 * unicode: fix case-mapping for roman numerals.
   2601 </pre>
   2602 
   2603 <h2 id="2011-07-19">2011-07-19</h2>
   2604 
   2605 <pre>
   2606 This weekly snapshot includes a language change and a change to the image
   2607 package that may require changes to client code.
   2608 
   2609 The language change is that an "else" block is now required to have braces
   2610 except if the body of the "else" is another "if". Since gofmt always puts those
   2611 braces in anyway, programs will not be affected unless they contain "else for",
   2612 "else switch", or "else select". Run gofmt to fix any such programs.
   2613 
   2614 The image package has had significant changes made to the Pix field of struct
   2615 types such as image.RGBA and image.NRGBA. The image.Image interface type has
   2616 not changed, though, and you should not need to change your code if you don't
   2617 explicitly refer to Pix fields. For example, if you decode a number of images
   2618 using the image/jpeg package, compose them using image/draw, and then encode
   2619 the result using image/png, then your code should still work as before.
   2620 
   2621 If you do explicitly refer to Pix fields, there are two changes.  First, Pix[0]
   2622 now refers to the pixel at Bounds().Min instead of the pixel at (0, 0). Second,
   2623 the element type of the Pix slice is now uint8 instead of image.FooColor. For
   2624 example, for an image.RGBA, the channel values will be packed R, G, B, A, R, G,
   2625 B, A, etc. For 16-bits-per-channel color types, the pixel data will be stored
   2626 as big-endian uint8s.
   2627 
   2628 Most Pix field types have changed, and so if your code still compiles after
   2629 this change, then you probably don't need to make any further changes (unless
   2630 you use an image.Paletted's Pix field). If you do get compiler errors, code
   2631 that used to look like this:
   2632 
   2633 	// Get the R, G, B, A values for the pixel at (x, y).
   2634 	var m *image.RGBA = loadAnImage()
   2635 	c := m.Pix[y*m.Stride + x]
   2636 	r, g, b, a := c.R, c.G, c.B, c.A
   2637 
   2638 should now look like this:
   2639 
   2640 	// Get the R, G, B, A values for the pixel at (x, y).
   2641 	var m *image.RGBA = loadAnImage()
   2642 	i := (y-m.Rect.Min.Y)*m.Stride + (x-m.Rect.Min.X)*4
   2643 	r := m.Pix[i+0]
   2644 	g := m.Pix[i+1]
   2645 	b := m.Pix[i+2]
   2646 	a := m.Pix[i+3]
   2647 
   2648 This image package change will not be fixed by gofix: how best to translate
   2649 code into something efficient and idiomatic depends on the surrounding context,
   2650 and is not easily automatable. Examples of what to do can be found in the
   2651 changes to image/draw/draw.go in http://codereview.appspot.com/4675076/
   2652 
   2653 Other changes:
   2654 * 6l: change default output name to 6.out.exe on windows (thanks Alex Brainman).
   2655 * archive/zip: add Writer,
   2656 	add Mtime_ns function to get modified time in sensible format.
   2657 * cc, ld, gc: fixes for Plan 9 build (thanks Lucio De Re).
   2658 * cgi: close stdout reader pipe when finished.
   2659 * cgo: add missing semicolon in generated struct,
   2660 	windows amd64 port (thanks Wei Guangjing).
   2661 * codereview: fix for Mercurial 1.9.
   2662 * dashboard: list "most installed this week" with rolling count.
   2663 * debug/elf: read ELF Program headers (thanks Matthew Horsnell).
   2664 * debug/pe: fixes ImportedSymbols for Win64 (thanks Wei Guangjing).
   2665 * debug/proc: remove unused package.
   2666 * doc/talks/io2010: update with gofix and handle the errors.
   2667 * exp/eval, exp/ogle: remove packages eval and ogle.
   2668 * exp/regexp/syntax: add Prog.NumCap.
   2669 * exp/template: API changes, bug fixes, and tweaks.
   2670 * flag: make -help nicer.
   2671 * fmt: Scan(&amp;int) was mishandling a lone digit.
   2672 * gc: fix closure bug,
   2673 	fix to build with clang (thanks Dave Cheney),
   2674 	make size of struct{} and [0]byte 0 bytes (thanks Robert Hencke),
   2675 	some enhancements to printing debug info.
   2676 * gif: fix local color map and coordinates.
   2677 * go/build: fixes for windows (thanks Alex Brainman),
   2678 	include processing of .c files for cgo packages (thanks Alex Brainman),
   2679 	less aggressive failure when GOROOT not found.
   2680 * go/printer: changed max. number of newlines from 3 to 2.
   2681 * gob: register more slice types (thanks Bobby Powers).
   2682 * godoc: support for file systems stored in .zip files.
   2683 * goinstall, dashboard: Google Code now supports git (thanks Tarmigan Casebolt).
   2684 * hash/crc32: add SSE4.2 support.
   2685 * html: update section references in comments to the latest HTML5 spec.
   2686 * http: drain the pipe output in TestHandlerPanic to avoid logging deadlock,
   2687 	fix Content-Type of file extension (thanks Yasuhiro Matsumoto),
   2688 	implement http.FileSystem for zip files,
   2689 	let FileServer work when path doesn't begin with a slash,
   2690 	support for periodic flushing in ReverseProxy.
   2691 * image/draw: add benchmarks.
   2692 * json: add omitempty struct tag option,
   2693 	allow using '$' and '-' as the struct field's tag (thanks Mikio Hara),
   2694 	encode \r and \n in strings as e.g. "\n", not "\u000A" (thanks Evan Martin),
   2695 	escape < and > in any JSON string for XSS prevention.
   2696 * ld: allow seek within write buffer<
   2697 	add a PT_LOAD PHDR entry for the PHDR (thanks David Anderson).
   2698 * net: windows/amd64 port (thanks Wei Guangjing).
   2699 * os: plan9: add Process.Signal as a way to send notes (thanks Yuval Pavel Zholkover).
   2700 * os: don't permit Process.Signal after a successful Wait.
   2701 * path/filepath: fixes for windows paths (thanks Alex Brainman).
   2702 * reflect: add Value.NumMethod,
   2703 	panic if Method index is out of range for a type.
   2704 * runtime: faster entersyscall, exitsyscall,
   2705 	fix panic for make(chan [0]byte),
   2706 	fix subtle select bug (thanks Hector Chu),
   2707 	make goc2c build on Plan 9 (thanks Lucio De Re),
   2708 	make TestSideEffectOrder work twice,
   2709 	several parallelism-related optimizations and fixes,
   2710 	stdcall_raw stack 16byte align for Win64 (thanks Wei Guangjing),
   2711 	string-related optimizations (thanks Quan Yong Zhai),
   2712 	track running goroutine count.
   2713 * strconv: handle [-+]Infinity in atof.
   2714 * sync: add fast paths to WaitGroup,
   2715 	improve RWMutex performance.
   2716 * syscall: add Flock on Linux,
   2717 	parse and encode SCM_RIGHTS and SCM_CREDENTIALS (thanks Albert Strasheim).
   2718 
2719 2720

2011-07-07 (release.html#r59">base for r59)

2721 2722
   2723 This weekly snapshot includes changes to the strings, http, reflect, json, and
   2724 xml packages. Code that uses these packages will need changes. Most of these
   2725 changes can be made automatically with gofix.
   2726 
   2727 The strings package's Split function has itself been split into Split and
   2728 SplitN. SplitN is the same as the old Split. The new Split is equivalent to
   2729 SplitN with a final argument of -1.
   2730 
   2731 The http package has a new FileSystem interface that provides access to files.
   2732 The FileServer helper now takes a FileSystem argument instead of an explicit
   2733 file system root. By implementing your own FileSystem you can use the
   2734 FileServer to serve arbitrary data.
   2735 
   2736 The reflect package supports a new struct tag scheme that enables sharing of
   2737 struct tags between multiple packages.
   2738 In this scheme, the tags must be of the form:
   2739         key:"value" key2:"value2"
   2740 reflect.StructField's Tag field now has type StructTag (a string type), which
   2741 has method Get(key string) string that returns the associated value.
   2742 Clients of json and xml will need to be updated. Code that says
   2743         type T struct {
   2744                 X int "name"
   2745         }
   2746 should become
   2747         type T struct {
   2748                 X int `json:"name"`  // or `xml:"name"`
   2749         }
   2750 Use govet to identify struct tags that need to be changed to use the new syntax.
   2751 
   2752 Other changes:
   2753 * 5l, 6l, 8l: drop use of ed during build.
   2754 * asn1: support T61 and UTF8 string.
   2755 * bufio: do not cache Read errors (thanks Graham Miller).
   2756 * build: make version.bash aware of branches.
   2757 * cgi: don't depend on CGI.pm for tests.
   2758 * codereview: make --ignore_hgpatch_failure work again,
   2759 	restrict sync to default branch.
   2760 * crypto/openpgp: add ability to reserialize keys,
   2761 	bug fix (thanks Gideon Jan-Wessel Redelinghuys).
   2762 * crypto/tls: fix generate_cert.go.
   2763 * crypto/x509: prevent chain cycles in Verify.
   2764 * csv: new package.
   2765 * doc: remove ed from apt-get package list.
   2766 * docs: fold the prog.sh scripting from makehtml into htmlgen itself.
   2767 * ebnflint: better handling of stdin.
   2768 * exp/regexp/syntax: new experimental RE2-based regexp implementation.
   2769 * exp/template: a new experimental templating package.
   2770 * fmt: add SkipSpace to fmt's ScanState interface.
   2771 * fmt: rename errno and error to err for doc consistency.
   2772 * gc: avoid package name ambiguity in error messages,
   2773 	fix package quoting logic,
   2774 	fixes for Plan 9 (thanks Lucio De Re).
   2775 * go/build: evaluate symlinks before comparing path to GOPATH.
   2776 * gob: use exported fields in structs in the package documentation.
   2777 * godoc: ignore directories that begin with '.',
   2778 	search GOPATH for documentation.
   2779 * gofix: os/signal, path/filepath, and sort fixes (thanks Robert Hencke),
   2780 * goinstall: add support for generic hosts (thanks Julian Phillips),
   2781 	only report successfully-installed packages to the dashboard,
   2782 	try to access via https (thanks Yasuhiro Matsumoto).
   2783 * gotest: add -test.benchtime and -test.cpu flags.
   2784 * html: fixes and improvements (thanks Yasuhiro Matsumoto).
   2785 * http/cgi: add Handler.Dir to specify working directory (thanks Yasuhiro Matsumoto).
   2786 * http: add StripPrefix handler wrapper,
   2787 	assume ContentLength 0 on GET requests,
   2788 	better handling of 0-length Request.Body,
   2789 	do TLS handshake explicitly before copying TLS state,
   2790 	document that ServerConn and ClientConn are low-level,
   2791 	make NewChunkedReader public (thanks Andrew Balholm),
   2792 	respect Handlers setting Connection: close in their response.
   2793 * image: more tests, Paletted.Opaque optimization.
   2794 * io.WriteString: if the object has a WriteString method, use it (thanks Evan Shaw).
   2795 * ld: elide the Go symbol table when using -s (thanks Anthony Martin).
   2796 * ld: fix ELF strip by removing overlap of sections (thanks Gustavo Niemeyer).
   2797 * mime/multipart: parse LF-delimited messages, not just CRLF.
   2798 * mime: permit lower-case media type parameters (thanks Pascal S. de Kloe).
   2799 * misc/dashboard: new features and improvements (not yet deployed).
   2800 * misc/emacs: update list of builtins (thanks Quan Yong Zhai).
   2801 * misc/vim: allow only utf-8 for file encoding (thanks Yasuhiro Matsumoto).
   2802 * os: fix documentation for FileInfo.Name,
   2803 	simplify WriteString,
   2804 	use a different symbol from syscall in mkunixsignals.sh.
   2805 * path/filepath: enable TestWalk to run on windows (thanks Alex Brainman).
   2806 * reflect: add MethodByName,
   2807 	allow Len on String values.
   2808 * regexp: document that Regexp is thread-safe.
   2809 * runtime/cgo: check for errors from pthread_create (thanks Albert Strasheim).
   2810 * runtime: add Semacquire/Semrelease benchmarks,
   2811 	improved Semacquire/Semrelease implementation,
   2812 	windows/amd64 port (thanks Wei Guangjing).
   2813 * sync: add fast path to Once,
   2814 	improve Mutex to allow successive acquisitions,
   2815 	new and improved benchmarks.
   2816 * syscall: regenerate zerrors for darwin/linux/freebsd,
   2817 	support for tty options in StartProcess (thanks Ken Rockot).
   2818 * testing: make ResetTimer not start/stop the timer,
   2819 	scale benchmark precision to 0.01ns if needed.
   2820 * time: zero-pad two-digit years.
   2821 * unicode/maketables: update debugging data.
   2822 * windows: define and use syscall.Handle (thanks Wei Guangjing).
   2823 * xml: add Marshal and MarshalIndent.
   2824 
2825 2826

2011-06-23

2827 2828
   2829 This snapshot includes a language change that restricts the use of goto.
   2830 In essence, a "goto" statement outside a block cannot jump to a label inside
   2831 that block. Your code may require changes if it uses goto.
   2832 This changeset shows how the new rule affected the Go tree:
   2833 	http://code.google.com/p/go/source/detail?r=dc6d3cf9279d
   2834 
   2835 The os.ErrorString type has been hidden. If your code uses os.ErrorString it
   2836 must be changed. Most uses of os.ErrorString can be replaced with os.NewError.
   2837 
   2838 Other changes:
   2839 * 5c: do not use R9 and R10.
   2840 * 8l: more fixes for Plan 9 (thanks Lucio De Re).
   2841 * build: Make.ccmd: link with mach lib (thanks Joe Poirier).
   2842 * build: exclude packages that fail on Plan 9 (thanks Anthony Martin).
   2843 * cc: nit: silence comment warnings (thanks Dave Cheney).
   2844 * codereview.py: note that hg change -d abandons a change list (thanks Robert Hencke).
   2845 * crypto/openpgp: add ElGamal support.
   2846 * doc/faq: add question about converting from []T to []interface{}.
   2847 * doc: Effective Go: fix variadic function example (thanks Ben Lynn).
   2848 * exec: LookPath should not search %PATH% for files like c:cmd.exe (thanks Alex Brainman),
   2849         add support for Plan 9 (thanks Anthony Martin),
   2850         better error message for windows LookPath (thanks Alex Brainman).
   2851 * fmt: catch panics from calls to String etc.
   2852 * gc: descriptive panic for nil pointer -&gt; value method call,
   2853         implement goto restriction,
   2854         unsafe.Alignof, unsafe.Offsetof, unsafe.Sizeof now return uintptr.
   2855 * go/build: include Import objects in Script Inputs.
   2856 * godefs: rudimentary tests (thanks Robert Hencke).
   2857 * goinstall: refactor and generalize repo handling code (thanks Julian Phillips),
   2858         temporarily use Makefiles by default (override with -make=false).
   2859 * gopprof: update list of memory allocators.
   2860 * http: add Server.ListenAndServeTLS,
   2861         buffer request.Write,
   2862         fix req.Cookie(name) with cookies in one header,
   2863         permit handlers to explicitly remove the Date header,
   2864         write Header keys with empty values.
   2865 * image: basic test for the 16-bits-per-color-channel types.
   2866 * io: clarify Read, ReadAt, Copy, Copyn EOF behavior.
   2867 * ld: don't attempt to build dynamic sections unnecessarily (thanks Gustavo Niemeyer).
   2868 * libmach: fix disassembly of FCMOVcc and FCOMI (thanks Anthony Martin),
   2869         fix tracing on linux (for cov) (thanks Anthony Martin).
   2870 * mime: fix RFC references (thanks Pascal S. de Kloe).
   2871 * misc/gobuilder: run make single-threaded on windows (thanks Alex Brainman).
   2872 * misc/godashboard: Accept sub-directories for goinstall's report (thanks Yasuhiro Matsumoto).
   2873 * nacl, tiny: remove vestiges (thanks Robert Hencke).
   2874 * net, syscall: interface for windows (thanks Yasuhiro Matsumoto).
   2875 * os: change Waitmsg String method to use pointer receiver (thanks Graham Miller).
   2876 * runtime: don't use twice the memory with grsec-like kernels (thanks Gustavo Niemeyer),
   2877 * spec: disallow goto into blocks.
   2878 * sync: restore GOMAXPROCS during benchmarks.
   2879 * syscall: add LSF support for linux (thanks Mikio Hara),
   2880         add socket control message support for darwin, freebsd, linux (thanks Mikio Hara),
   2881         add tty support to StartProcess (thanks Ken Rockot),
   2882         fix build for Sizeof change.
   2883 * test: test of goto restrictions.
   2884 * time: add support for Plan 9 (thanks Anthony Martin).
   2885 </pre>
   2886 
   2887 <h2 id="2011-06-16">2011-06-16</h2>
   2888 
   2889 <pre>
   2890 This snapshot includes changes to the sort and image/draw packages that will
   2891 require changes to client code.
   2892 
   2893 The sort.IntArray type has been renamed to IntSlice, and similarly for
   2894 StringArray and Float64Array.
   2895 
   2896 The image/draw package's Draw function now takes an additional argument,
   2897 a compositing operator. If in doubt, use draw.Over.
   2898 
   2899 Other changes:
   2900 * build: fix header files for Plan 9 (thanks Lucio De Re).
   2901 * cgo: handle new Apple LLVM-based gcc from Xcode 4.2.
   2902 * crypto/openpgp: add ability to encrypt and sign messages.
   2903 * doc/gopher: add goggled gopher logo for App Engine.
   2904 * doc: Update notes for 3-day Go course.
   2905 * exec: make LookPath work when PATHEXT var not set on Windows (thanks Alex Brainman).
   2906 * exp/regexp/syntax: syntax data structures, parser, escapes, character classes.
   2907 * exp/template: lexical scanner for new template package.
   2908 * fmt: debugging formats for characters: %+q %#U.
   2909 * gc: frame compaction for arm,
   2910         handle go print() and go println(),
   2911         work around goto bug.
   2912 * go/build: fixes, self-contained tests.
   2913 * go/printer, gofmt: print "select {}" on one line.
   2914 * godoc: replace OS file system accesses in favor of a FileSystem interface.
   2915 * gofix: fix inconsistent indentation in help output (thanks Scott Lawrence).
   2916 * goinstall: use go/build package to scan and build packages.
   2917 * http/spdy: improve error handling (thanks William Chan).
   2918 * http: use runtime/debug.Stack() to dump stack trace on panic.
   2919 * ld: dwarf emit filenames in debug_line header instead of as extended opcodes,
   2920         fix link Windows PE __declspec(dllimport) symbol (thanks Wei Guangjing),
   2921         make .rodata section read-only (thanks Gustavo Niemeyer).
   2922 * mail: decode RFC 2047 "B" encoding.
   2923 * mime/multipart: remove temp files after tests on Windows (thanks Alex Brainman).
   2924 * net: export all fields in Interface (thanks Mikio Hara),
   2925         rearrange source to run more tests on Windows (thanks Alex Brainman),
   2926         sendfile for win32 (thanks Yasuhiro Matsumoto).
   2927 * os: Plan 9, fix OpenFile &amp; Chmod, add Process.Kill (thanks Yuval Pavel Zholkover).
   2928 * runtime: fix Plan 9 "lingering goroutines bug" (thanks Yuval Pavel Zholkover).
   2929 * spec: clarify rules for append, scope rules for :=,
   2930         specify constant conversions,
   2931         unsafe.Alignof/Offsetof/Sizeof return uintptr.
   2932 * syscall, os, exec: add *syscall.SysProcAttr field to os.ProcAttr and exec.Cmd.
   2933 * syscall: add ptrace on darwin (thanks Jeff Hodges),
   2934         mksyscall_windows.pl should output unix newline (thanks Yasuhiro Matsumoto).
   2935         update BPF support for BSD variants (thanks Mikio Hara),
   2936         use strict in perl scripts (thanks Yasuhiro Matsumoto).
   2937 * xml: handle non-string attribute fields (thanks Maxim Ushakov).
   2938 </pre>
   2939 
   2940 <h2 id="2011-06-09">2011-06-09 (<a href="release.html#r58">base for r58</a>)</h2>
   2941 
   2942 <pre>
   2943 This snapshot includes changes to the strconv, http, and exp/draw packages.
   2944 Client code that uses the http or exp/draw packages will need to be changed,
   2945 and code that uses strconv or fmt's "%q" formatting directive merits checking.
   2946 
   2947 The strconv package's Quote function now escapes only those Unicode code points
   2948 not classified as printable by unicode.IsPrint. Previously Quote would escape
   2949 all non-ASCII characters. This also affects the fmt package's "%q" formatting
   2950 directive. The previous quoting behavior is still available via strconv's new
   2951 QuoteToASCII function.   
   2952 
   2953 Most instances of the type map[string][]string in the http package have been
   2954 replaced with the new Values type. The http.Values type has the Get, Set, Add,
   2955 and Del helper methods to make working with query parameters and form values
   2956 more convenient.
   2957 
   2958 The exp/draw package has been split into the image/draw and exp/gui packages.
   2959 
   2960 Other changes:
   2961 * 8l, ld: initial adjustments for Plan 9 native compilation of 8l (thanks Lucio De Re).
   2962 * arm: floating point improvements (thanks Fan Hongjian).
   2963 * big: Improved speed of nat-to-string conversion (thanks Michael T. Jones),
   2964         Rat outputs the requested precision from FloatString (thanks Graham Miller),
   2965         gobs for big.Rats.
   2966 * cgo: support non intel gcc machine flags (thanks Dave Cheney).
   2967 * compress/lzw: do not use background goroutines,
   2968         reduce decoder buffer size from 3*4096 to 2*4096.
   2969 * crypto/twofish: fix Reset index overflow bug.
   2970 * crypto: reorg, cleanup and add function for generating CRLs.
   2971 * exec: export the underlying *os.Process in Cmd.
   2972 * gc: enable building under clang/2.9 (thanks Dave Cheney),
   2973         preparatory work toward escape analysis, compact stack frames.
   2974 * go/build: new incomplete package for building go programs.
   2975 * godefs: do not assume forward type references are enums (thanks Robert Hencke).
   2976 * gofix, gofmt: fix diff regression from exec change.
   2977 * html: improve attribute parsing, note package status.
   2978 * http: don't fail on accept hitting EMFILE,
   2979         fix handling of 0-length HTTP requests.
   2980 * image/draw: fix clipping bug where sp/mp were not shifted when r.Min was.
   2981 * image/gif: fix buglet in graphics extension.
   2982 * image/tiff: support for bit depths other than 8 (thanks Benny Siegert).
   2983 * ld: fix and simplify ELF symbol generation (thanks Anthony Martin)
   2984 * libmach: use the standardized format for designated initializers (thanks Jeff Hodges)
   2985 * mail: address list parsing.
   2986 * net: add network interface identification API (thanks Mikio Hara),
   2987         fix bug in net.Interfaces: handle elastic sdl_data size correctly (thanks Mikio Hara).
   2988 * netchan: added drain method to importer (thanks David Jakob Fritz).
   2989 * os: add Process.Kill and Process.Signal (thanks Evan Shaw),
   2990         fix Getenv for Plan 9 (thanks Yuval Pavel Zholkover).
   2991 * runtime: improve memmove by checking memory overlap (thanks Quan Yong Zhai),
   2992         support for Linux grsecurity systems (thanks Jonathan Mark).
   2993 * spec: handle a corner case for shifts.
   2994 * testing: check that tests and benchmarks do not affect GOMAXPROCS (thanks Dmitriy Vyukov).
   2995 * unicode: add IsPrint and related properties, general categories.
   2996 </pre>
   2997 
   2998 <h2 id="2011-06-02">2011-06-02</h2>
   2999 
   3000 <pre>
   3001 This snapshot includes changes to the exec package that will require changes
   3002 to client code.
   3003 
   3004 The exec package has been re-designed with a more convenient and succinct API.
   3005 This code:
   3006 	args := []string{"diff", "-u", "file1.txt", "file2.txt"}
   3007 	p, err := exec.Run("/usr/bin/diff", args, os.Environ(), "",
   3008 		exec.DevNull, exec.Pipe, exec.DevNull)
   3009 	if err != nil {
   3010 		return nil, err
   3011 	}
   3012 	var buf bytes.Buffer
   3013 	io.Copy(&amp;buf, p.Stdout)
   3014 	w, err := p.Wait(0)
   3015 	p.Close()
   3016 	if err != nil {
   3017 		return nil, err
   3018 	}
   3019 	return buf.Bytes(), err
   3020 can be rewritten as:
   3021 	return exec.Command("diff", "-u", "file1.txt", "file2.txt").Output()
   3022 See the exec package documentation for the details ("godoc exec").
   3023 
   3024 By setting the GOPATH environment variable you can use goinstall to build and
   3025 install your own code and external libraries outside of the Go tree (and avoid
   3026 writing Makefiles).
   3027 See the goinstall command documentation for the details ("godoc goinstall").
   3028 
   3029 Other changes:
   3030 * 5g: alignment fixes.
   3031 * 6l, 8l: fix Mach-O binaries with many dynamic libraries.
   3032 * 8l: emit resources (.rsrc) in Windows PE.  (thanks Wei Guangjing).
   3033 * asn1: fix marshaling of empty optional RawValues (thanks Mikkel Krautz).
   3034 * big: make Int and Rat implement fmt.Scanner (thanks Evan Shaw),
   3035 	~8x faster number scanning,
   3036 	remove some unnecessary conversions.
   3037 * cgo: restrict #cgo directives to prevent shell expansion (thanks Gustavo Niemeyer),
   3038 	support pkg-config for flags and libs (thanks Gustavo Niemeyer).
   3039 * compress/flate: fix Huffman tree bug,
   3040 	do not use background goroutines.
   3041 * crypto/openpgp: add support for symmetrically encrypting files.
   3042 * crypto/tls/generate_cert.go: fix misspelling of O_CREATE.
   3043 * dashboard: send notification emails when the build breaks.
   3044 * doc: mention go/printer instead of container/vector in effective go,
   3045 	put Release History link on 'Documentation' page,
   3046 	put Weekly Snapshot History link on 'Contributing' page.
   3047 * encoding/base64: add DecodeString and EncodeToString.
   3048 * encoding/binary: add a non-reflect fast path for Read,
   3049 	add a non-reflect fast path for Write.
   3050 * encoding/hex: add hex dumping.
   3051 * encoding/line: delete package. Its functionality is now in bufio.
   3052 * filepath: Abs must always return a clean path (thanks Gustavo Niemeyer).
   3053 * fmt: fix bug in UnreadRune,
   3054 	make %q work for integers, printing a quoted character literal,
   3055 	return EOF when out of input in Scan*.
   3056 * gc: check parameter declarations in interface fields (thanks Anthony Martin),
   3057 	disallow ... in type conversions (thanks Anthony Martin),
   3058 	do not force heap allocation on referencing outer variable in a closure,
   3059 	fix m[x], _ = y.(T),
   3060 	implement new shift rules,
   3061 	patch y.tab.c to fix build when using Bison 2.5,
   3062 	relax assignability of method receivers (thanks Anthony Martin),
   3063 	typecheck the whole tree before walking.
   3064 * go/scanner: don't allow "0x" and "0X" as integers (thanks Evan Shaw).
   3065 * gobuilder: fixes for windows (thanks Alex Brainman).
   3066 * godoc: basic setup for running godoc on local app engine emulator,
   3067 	display advert for the package dashboard on package list page.
   3068 * goinstall: fixes for windows (thanks Alex Brainman),
   3069 	more verbose logging with -v.
   3070 * gotest, pkg/exec: use bash to run shell scripts on windows (thanks Alex Brainman).
   3071 * http/spdy: redo interfaces, flesh out implementation &amp; frame types (thanks William Chan).
   3072 * http: Transport hook to register non-http(s) protocols,
   3073 	add client+server benchmark,
   3074 	catch Handler goroutine panics,
   3075 	fix Set-Cookie date parsing,
   3076 	have client set Content-Length when possible,
   3077 	let Transport use a custom net.Dial function,
   3078 	propagate Set-Cookie in reverse proxy,
   3079 	ServeFile shouldn't send Content-Length when Content-Encoding is set.
   3080 * image: add a SubImage method.
   3081 * image/gif: simplify blockReader.Read.
   3082 * image/png: fix encoding of images that don't start at (0, 0).
   3083 * io, net, http: sendfile support.
   3084 * io: add ByteScanner, RuneScanner interfaces.
   3085 * ld: add -w to disable dwarf, make errors obviously from dwarf.
   3086 * mail: new package.
   3087 * mime/multipart: misc code/doc fixes.
   3088 * misc/cgo: remove reference to 'destroy' function.
   3089 * misc/emacs: don't select the mark after gofmt (thanks Eric Eisner).
   3090 * misc/gophertool: Chrome extension to aid in Go development
   3091 * misc/vim: limit Fmt command to Go buffers (thanks Yasuhiro Matsumoto).
   3092 * net: if we stop polling, remove any pending events for the socket,
   3093 	update IP multicast socket options (thanks Mikio Hara).
   3094 * os: Fix test to work on Solaris,
   3095 	fix Readdir(0) on EOF,
   3096 	fix Readdir, Readdirnames (thanks Yuval Pavel Zholkover),
   3097 	fix os.MkdirAll with backslash path separator (thanks Yasuhiro Matsumoto),
   3098 	handle OpenFile flag parameter properly on Windows (thanks Alex Brainman).
   3099 * path/filepath: remove string constants.
   3100 * pkg: spelling tweaks, I-Z (thanks Robert Hencke).
   3101 * quietgcc: fix typo, respect $TMPDIR.
   3102 * runtime: do not garbage collect windows callbacks (thanks Alex Brainman),
   3103 	fix mmap error return on linux (thanks Dmitry Chestnykh),
   3104 	reset GOMAXPROCS during tests,
   3105 	save cdecl registers in Windows SEH handler (thanks Alexey Borzenkov).
   3106 * spec: be precise with the use of the informal ellipsis and the Go token,
   3107 	clarify rules for shifts.
   3108 * strconv: add QuoteRune; analogous to Quote but for runes rather than strings.
   3109 * strings: implement UnreadByte, UnreadRune.
   3110 * sync: always wake up sleeping goroutines on Cond.Signal (thanks Gustavo Niemeyer).
   3111 * sync/atomic: fix check64.
   3112 * syscall: add ProcAttr field to pass an unescaped command line on windows (thanks Vincent Vanackere),
   3113 	add routing messages support for Linux and BSD (thanks Mikio Hara).
   3114 * template: fixes and clean-ups (thanks Gustavo Niemeyer).
   3115 * time: fix Format bug: midnight/noon are 12AM/PM not 0AM/PM.
   3116 * unicode: make the tables smaller.
   3117 </pre>
   3118 
   3119 <h2 id="2011-05-22">2011-05-22</h2>
   3120 
   3121 <pre>
   3122 This snapshot includes changes to the http package that will require changes to
   3123 client code.
   3124 
   3125 The finalURL return value of the Client.Get method has been removed.
   3126 This value is now accessible via the new Request field on http.Response.
   3127 For example, this code:
   3128 
   3129 	res, finalURL, err := http.Get(...)
   3130 
   3131 should be rewritten as:
   3132 
   3133 	res, err := http.Get(...)
   3134 	if err != nil {
   3135 		// ...
   3136 	}
   3137 	finalURL := res.Request.URL.String()
   3138 
   3139 Uses of http.Get that assign the finalURL value to _ can be rewritten
   3140 automatically with gofix.
   3141 
   3142 This snapshot also includes an optimization to the append function that makes it
   3143 between 2 and 5 times faster in typical use cases.
   3144 
   3145 Other changes:
   3146 * 5a, 6a, 8a, cc: remove old environment variables.
   3147 * 5c, 5g: fix build with too-smart gcc.
   3148 * 5l, 8l: add ELF symbol table to binary.
   3149 * 5l: delete pre-ARMv4 instruction implementations, other fixes.
   3150 * 6l, 8l: emit windows dwarf sections like other platforms (thanks Alex Brainman).
   3151 * 6l: fix emit windows dwarf sections (thanks Wei Guangjing).
   3152 * 8g: fix conversion from float to uint64 (thanks Anthony Martin).
   3153 * Make.cmd: create TARGDIR if necessary (thanks Gustavo Niemeyer).
   3154 * asn1: add big support.
   3155 * big: add Int methods to act on numbered bits (thanks Roger Peppe),
   3156 	better support for string conversions,
   3157 	support %v and # modifier, better handling of unknown formats.
   3158 * cgi: export RequestFromMap (thanks Evan Shaw),
   3159 	set Request.TLS and Request.RemoteAddr for children.
   3160 * cgo: use packed struct to fix Windows behavior.
   3161 * codereview: add release branch support,
   3162 	fetch metadata using JSON API, not XML scraping,
   3163 	handle 'null as missing field' in rietveld json.
   3164 * compress/lzw: silently drop implied codes that are too large.
   3165 * compress/zlib: actually use provided dictionary in NewWriterDict
   3166 * crypto/openpgp: add key generation support,
   3167 	change PublicKey.Serialize to include the header.
   3168 * crypto/rand: add utility functions for number generation (thanks Anthony Martin).
   3169 * crypto/tls: export the verified chains.
   3170 * crypto/x509/crl: add package.
   3171 * crypto/x509: export raw SubjectPublicKeyInfo,
   3172 	support DSA public keys in X.509 certs,
   3173 	support parsing and verifying DSA signatures (thanks Jonathan Allie).
   3174 * doc/roadmap: put "App Engine support" under "Done".
   3175 * doc: add I/O 2011 talks to talks/, docs.html, and front page.
   3176 * effective go: explain about values/pointers in String() example,
   3177 	update to new Open signature.
   3178 * exp/draw: fast paths for drawing a YCbCr or an NRGBA onto an RGBA.
   3179 * filepath: make EvalSymlinks work on Windows (thanks Alex Brainman).
   3180 * flag: allow distinct sets of flags.
   3181 * gc: fix type switch error message for invalid cases (thanks Lorenzo Stoakes),
   3182 	fix unsafe.Sizeof,
   3183 	preserve original expression for errors.
   3184 * go/ast, go/doc, godoc: consider struct fields and interface methods when filtering ASTs.
   3185 * go/ast: consider anonymous fields and set Incomplete bit when filtering ASTs,
   3186 	properly maintain map of package global imports.
   3187 * go/doc, godoc: when filtering for godoc, don't remove elements of a declaration.
   3188 * go/parser: accept parenthesized receive operations in select statements,
   3189 	always introduce an ast.Object when declaring an identifier.
   3190 * go/printer, gofmt: fix alignment of "=" in const/var declarations,
   3191 	fix formatting of expression lists (missing blank).
   3192 * go/printer: added simple performance benchmark,
   3193 	make tests follow syntactic restrictions,
   3194 	more accurate comment for incomplete structs/interfaces,
   3195 * go/token: faster FileSet.Position implementation.
   3196 * go/types: type checker API + testing infrastructure.
   3197 * godoc: added -index flag to enable/disable search index,
   3198 	if there is no search box, don't run the respective JS code.
   3199 * gofmt: update test.sh (exclude a file w/ incorrect syntax).
   3200 * html: parse empty, unquoted, and single-quoted attribute values.
   3201 * http/cgi: correctly set request Content-Type (thanks Evan Shaw),
   3202 	pass down environment variables for IRIX and Solaris.
   3203 * http/pprof: fix POST reading bug.
   3204 * http/spdy: new incomplete package (thanks Ross Light).
   3205 * http: Client.Do should follow redirects for GET and HEAD,
   3206 	add Header.Write method (thanks Evan Shaw),
   3207 	add Request.SetBasicAuth method,
   3208 	add Transport.ProxySelector,
   3209 	add http.SetCookie(ResponseWriter, *Cookie),
   3210 	don't Clean query string in relative redirects,
   3211 	fix FormFile nil pointer dereference on missing multipart form,
   3212 	fix racy test with a simpler version,
   3213 	fix two Transport gzip+persist crashes,
   3214 	include Host header in requests,
   3215 	make HEAD client request follow redirects (thanks Eivind Uggedal).
   3216 	update cookie doc to reference new RFC 6265,
   3217 	write cookies according to RFC 6265 (thanks Christian Himpel).
   3218 * image/bmp: implement a BMP decoder.
   3219 * image/gif: new package provides a GIF decoder.
   3220 * image/jpeg: decode grayscale images, not just color images.
   3221 	optimizations and tweaks.
   3222 * image/png: encode paletted images with alpha channel (thanks Dmitry Chestnykh),
   3223 	speed up opaque RGBA encoding.
   3224 * image/tiff: implement a decoder (thanks Benny Siegert).
   3225 * image: add type-specific Set methods and use them when decoding PNG,
   3226 	make AlphaColor.Set conform to usual signature (thanks Roger Peppe),
   3227 	png &amp; jpeg encoding benchmarks.
   3228 * ld: do not emit reference to dynamic library named "",
   3229 	fix alignment of rodata section on Plan 9 (thanks Anthony Martin),
   3230 	make ELF binaries with no shared library dependencies static binaries.
   3231 * make.bash: remove old bash version of gotest on Windows (thanks Alex Brainman).
   3232 * make: add nuke target for C commands and libs (thanks Anthony Martin).
   3233 * mime/multipart: add FileName accessor on Part,
   3234 	add Writer,
   3235 	return an error on Reader EOF, not (nil, nil).
   3236 * misc/cgo/test: run tests.
   3237 * misc/emacs: use UTF-8 when invoking gofmt as a subprocess (thanks Sameer Ajmani).
   3238 * misc/vim: new Vim indentation script.
   3239 * net, http: add and make use of IP address scope identification API (thanks Mikio Hara).
   3240 * net: default to 127.0.0.1, not localhost, in TestICMP,
   3241 	don't crash on unexpected DNS SRV responses,
   3242 	enable SO_REUSEPORT on BSD variants (thanks Mikio Hara),
   3243 	protocol family adaptive address family selection (thanks Mikio Hara),
   3244 	re-enable wildcard listening (thanks Mikio Hara),
   3245 	sort records returned by LookupSRV (thanks Gary Burd).
   3246 * os: make Readdir &amp; Readdirnames return os.EOF at end,
   3247 	make Setenv update C environment variables.
   3248 * reflect: allow unexported key in Value.MapIndex.
   3249 * runtime, sync/atomic: fix arm cas.
   3250 * runtime: add newline to "finalizer already set" error (thanks Albert Strasheim),
   3251 	handle out-of-threads on Linux gracefully (thanks Albert Strasheim),
   3252 	fix function args not checked warning on ARM (thanks Dave Cheney),
   3253 	make StackSystem part of StackGuard (thanks Alexey Borzenkov),
   3254 	maybe fix Windows build broken by cgo setenv CL.
   3255 * spec: clarify semantics of integer division,
   3256 	clarify semantics of range clause,
   3257 	fix error in production syntax,
   3258 	narrow syntax for expression and select statements,
   3259 	newlines cannot be used inside a char or "" string literal,
   3260 	restricted expressions may still be parenthesized.
   3261 * strings: make Reader.Read use copy instead of an explicit loop.
   3262 * syscall: add Windows file mapping functions and constants (thanks Evan Shaw),
   3263 	add IPv6 scope zone ID support (thanks Mikio Hara),
   3264 	add netlink support for linux/386, linux/amd64, linux/arm (thanks Mikio Hara),
   3265 	add Sendfile,
   3266 	adjust freebsd syscalls.master URL properly (thanks Mikio Hara),
   3267 	change Overlapped.HEvent type, it is a handle (thanks Alex Brainman).
   3268 * syslog: fix skipping of net tests (thanks Gustavo Niemeyer).
   3269 * template: support string, int and float literals (thanks Gustavo Niemeyer).
   3270 * xml: fix reflect error.
   3271 </pre>
   3272 
   3273 <h2 id="2011-04-27">2011-04-27 (<a href="release.html#r57">base for r57</a>)</h2>
   3274 
   3275 <pre>
   3276 This snapshot includes revisions to the reflect package to make it more
   3277 efficient, after the last weekly's major API update. If your code uses reflect
   3278 it may require further changes, not all of which can be made automatically by
   3279 gofix. For the full details of the change, see
   3280 	http://codereview.appspot.com/4435042
   3281 Also, the Typeof and NewValue functions have been renamed to TypeOf and ValueOf.
   3282 
   3283 Other changes:
   3284 * 5c: make alignment rules match 5g, just like 6c matches 6g.
   3285 * 8g, 8l: fix "set but not used" gcc error (thanks Fazlul Shahriar).
   3286 * all-qemu.bash: remove DISABLE_NET_TESTS.
   3287 * build: remove DISABLE_NET_TESTS.
   3288 * builder: build multiple targets in parallel.
   3289 * cgo: avoid "incompatible pointer type" warning (thanks Albert Strasheim).
   3290 * codereview: add 'hg undo' command, various other fixes.
   3291 * compress/flate: dictionary support.
   3292 * compress/zlib: add FDICT flag in Reader/Writer (thanks Ross Light).
   3293 * container/heap: fix circular dependency in test.
   3294 * crypto/openpgp: better handling of keyrings.
   3295 * crypto/rsa: support > 3 primes.
   3296 * crypto/tls: add server-side OCSP stapling support.
   3297 * crypto/x509: memorize chain building.
   3298 * crypto: move certificate verification into x509.
   3299 * dashboard: build most recent revision first.
   3300 * doc: mention make version in install.html.
   3301 * expvar: add Func for functions that return values that are JSON marshalable.
   3302 * fmt: decrease recursion depth in tests to permit them to run under gccgo,
   3303 	tweak the doc for %U.
   3304 * gc: allow complex types to be receiver types (thanks Robert Hencke),
   3305 	correct handling of unexported method names in embedded interfaces,
   3306 	explain why invalid receiver types are invalid,
   3307 	fix copy([]int, string) error message (thanks Quan Yong Zhai),
   3308 	fix 'invalid recursive type' error (thanks Lorenzo Stoakes),
   3309 	many bug fixes.
   3310 * go spec: attempt at clarifying language for "append",
   3311 	for map types, mention indexing operations.
   3312 * go/types: update for export data format change.
   3313 * gob: fix handling of indirect receivers for GobDecoders,
   3314 	fix trivial bug in map marshaling,
   3315 	have errorf always prefix the message with "gob: ",
   3316 	test case for indirection to large field,
   3317 	use new Implements and AssignableTo methods in reflect,
   3318 	when decoding a string, allocate a string, not a []byte.
   3319 * gobuilder: permit builders of the form goos-goarch-foo,
   3320 	respect MAKEFLAGS if provided (thanks Dave Cheney).
   3321 * godoc: use "search" input type for search box (thanks Dmitry Chestnykh).
   3322 * gofix: add support for reflect rename.
   3323 * gofmt: add -d (diff) (thanks David Crawshaw),
   3324 	don't crash when rewriting nil interfaces in AST,
   3325 	exclude test case that doesn't compile w/o errors,
   3326 	gofmt test harness bug fix.
   3327 * goinstall: support GOPATH; building and installing outside the Go tree,
   3328 	support building executable commands.
   3329 * gopack: fix prefix bug,
   3330 	preserve safe flag when not adding unsafe objects to archive.
   3331 * gotest: add timing, respect $GOARCH,
   3332 	generate gofmt-compliant code.
   3333 * http/cgi: copy some PATH environment variables to child,
   3334 	improve Location response handling,
   3335 	pass some default environment variables.
   3336 * http/fcgi: new package (thanks Evan Shaw).
   3337 * http: add NewRequest helper,
   3338 	add MultipartForm, ParseMultipartForm, and FormFile to Request,
   3339 	be clear when failing to connect to a proxy,
   3340 	bug fixes and new tests,
   3341 	consume request bodies before replying,
   3342 	don't quote Set-Cookie Domain and Path (thanks Petar Maymounkov),
   3343 	fix IP confusion in TestServerTimeouts,
   3344 	handler timeout support,
   3345 	ServerConn, ClientConn: add real Close (thanks Petar Maymounkov),
   3346 	make Client redirect policy configurable,
   3347 	put a limit on POST size,
   3348 	reverse proxy handler.
   3349 * image/jpeg: add an encoder,
   3350 	decode to a YCbCr image instead of an RGBA image.
   3351 * ioutil: add Discard.
   3352 * json: keep track of error offset in SyntaxError.
   3353 * ld: defend against some broken object files,
   3354 	do not emit empty dwarf pe sections (thanks Alex Brainman),
   3355 	fix 6l -d on Mac, diagnose invalid use of -d,
   3356 	fix Plan 9 symbol table (thanks Anthony Martin),
   3357 	remove MachoLoad limit.
   3358 * make: prevent rm provoking 'text file busy' errors (thanks Lorenzo Stoakes).
   3359 * mime/multipart: add ReadForm for parsing multipart forms,
   3360 	limit line length to prevent abuse.
   3361 * mime: RFC 2231 continuation / non-ASCII support,
   3362 	bunch more tests, few minor parsing fixes.
   3363 * misc/goplay: fix Tab and Shift+Enter in Firefox (thanks Dmitry Chestnykh).
   3364 * net: disable one more external network test,
   3365 	fix EAI_BADFLAGS error on freebsd (thanks Mikio Hara),
   3366 	fix ParseIP (thanks Quan Yong Zhai),
   3367 	fix dialgoogle_test.go (thanks Quan Yong Zhai),
   3368 	try /etc/hosts before loading DNS config (thanks Dmitry Chestnykh),
   3369 	use C library resolver on FreeBSD, Linux, OS X / amd64, 386.
   3370 * os/user: new package to look up users.
   3371 * os: Open with O_APPEND|O_CREATE to append on Windows (thanks Alex Brainman),
   3372 	fix race in ReadAt/WriteAt on Windows (thanks Alex Brainman),
   3373 	turn EPIPE exit into panic.
   3374 * rc/env.bash: fix to build on windows under msys (thanks Joe Poirier).
   3375 * reflect: allow Slice of arrays,
   3376 	fix Copy of arrays (thanks Gustavo Niemeyer),
   3377 	require package qualifiers to match during interface check,
   3378 	add Type.Implements, Type.AssignableTo, Value.CallSlice,
   3379 	make Set match Go.
   3380 * rpc: allow the first argument of a method to be a value rather than a pointer,
   3381 	run benchmarks over HTTP as well as direct network connections.
   3382 * run.bash: remove redundant rebuilds.
   3383 * runtime/plan9: warning remediation for Plan 9 (thanks Lucio De Re),
   3384 * runtime: many bug fixes,
   3385 	fix GOMAXPROCS vs garbage collection bug (thanks Dmitriy Vyukov),
   3386 	fix mkversion to output valid path separators (thanks Peter Mundy),
   3387 	more graceful out-of-memory crash,
   3388 	require package qualifiers to match during interface check,
   3389 	skip functions with no lines when building src line table,
   3390 	turn "too many EPIPE" into real SIGPIPE.
   3391 * src/pkg: make package doc comments consistently start with "Package foo".
   3392 * syscall: Madvise and Mprotect for Linux (thanks Albert Strasheim),
   3393 	Mlock, Munlock, Mlockall, Munlockall on Linux (thanks Albert Strasheim),
   3394 	add BPF support for darwin/386, darwin/amd64 (thanks Mikio Hara),
   3395 	correct Windows CreateProcess input parameters (thanks Alex Brainman),
   3396 	fix Ftruncate under linux/arm5 (thanks Dave Cheney),
   3397 	permit StartProcess to hide the executed program on windows (thanks Vincent Vanackere).
   3398 * test/bench: update timings; moving to new machine.
   3399 * time: support Irix 6 location for zoneinfo files.
   3400 * tutorial: modernize the definition and use of Open,
   3401 	replace the forever loops with finite counts in sieve programs.
   3402 * websocket: include *http.Request in websocket.Conn.
   3403 * xml: Parser hook for non-UTF-8 charset converters.
   3404 </pre>
   3405 
   3406 <h2 id="2011-04-13">2011-04-13</h2>
   3407 
   3408 <pre>
   3409 weekly.2011-04-13
   3410 
   3411 This weekly snapshot includes major changes to the reflect package and the
   3412 os.Open function.  Code that uses reflect or os.Open will require updating,
   3413 which can be done mechanically using the gofix tool.
   3414 
   3415 The reflect package's Type and Value types have changed.  Type is now an
   3416 interface that implements all the possible type methods.  Instead of a type
   3417 switch on a reflect.Type t, switch on t.Kind().  Value is now a struct value
   3418 that implements all the possible value methods.  Instead of a type switch on a
   3419 reflect.Value v, switch on v.Kind().  See the change for the full details:
   3420         http://code.google.com/p/go/source/detail?r=843855f3c026
   3421 
   3422 The os package's Open function has been replaced by three functions:
   3423         OpenFile(name, flag, perm) // same as old Open
   3424         Open(name) // same as old Open(name, O_RDONLY, 0)
   3425         Create(name) // same as old Open(name, O_RDWR|O_TRUNC|O_CREAT, 0666)
   3426 
   3427 To update your code to use the new APIs, run "gofix path/to/code".  Gofix can't
   3428 handle all situations perfectly, so read and test the changes it makes before
   3429 committing them.
   3430 
   3431 Other changes:
   3432 * archive/zip: add func OpenReader, type ReadCloser (thanks Dmitry Chestnykh).
   3433 * asn1: Implement correct marshaling of length octets (thanks Luit van Drongelen).
   3434 * big: don't crash when printing nil ints.
   3435 * bufio: add ReadLine, to replace encoding/line.
   3436 * build: make the build faster, quieter.
   3437 * codereview: automatically port old diffs forward,
   3438         drop Author: line on self-clpatch,
   3439         recognize code URL without trailing slash.
   3440 * crypto/block: remove deprecated package.
   3441 * crypto/des: new package implementating DES and TDEA (thanks Yasuhiro Matsumoto).
   3442 * crypto/ecdsa, crypto/rsa: use io.ReadFull to read from random source (thanks Dmitry Chestnykh).
   3443 * crypto/rsa: add 3-prime support,
   3444         add support for precomputing CRT values,
   3445         flip the CRT code over so that it matches PKCS#1.
   3446 * crypto/x509: expose complete DER data (thanks Mikkel Krautz).
   3447 * doc: new "Functions" codewalk (thanks John DeNero).
   3448 * doc/roadmap: add sections on tools, packages.
   3449 * fmt: allow %U for unsigned integers.
   3450 * gc: fixes and optimizations.
   3451 * go/printer, gofmt: use blank to separate import rename from import path.
   3452 * go/scanner: better TokenString output.
   3453 * go/types: new Go type hierarchy implementation for AST.
   3454 * godashboard: show packages at launchpad.net (thanks Gustavo Niemeyer).
   3455 * gofix: add -diff, various fixes and helpers.
   3456 * gotest: fix a bug in error handling,
   3457         fixes for [^.]_test file pattern (thanks Peter Mundy),
   3458         handle \r\n returned by gomake on Windows (thanks Alex Brainman).
   3459 * gotype: use go/types GcImporter.
   3460 * govet: make name-matching for printf etc. case-insensitive.
   3461 * http: allow override of Content-Type for ServeFile,
   3462         client gzip support,
   3463         do not listen on 0.0.0.0 during test,
   3464         flesh out server Expect handling + tests.
   3465 * image/ycbcr: new package.
   3466 * image: allow "?" wildcards when registering image formats.
   3467 * io: fixes for Read with n > 0, os.EOF (thanks Robert Hencke).
   3468 * ld: correct Plan 9 compiler warnings (thanks Lucio De Re),
   3469         ELF header function declarations (thanks Lucio De Re),
   3470         fix Mach-O X86_64_RELOC_SIGNED relocations (thanks Mikkel Krautz),
   3471         fix Mach-O bss bug (thanks Mikkel Krautz),
   3472         fix dwarf decoding of strings for struct's fieldnames (thanks Luuk van Dijk),
   3473         fixes and optimizations (25% faster).
   3474 * log: generalize getting and setting flags and prefix.
   3475 * misc/cgo/life: enable build and test on Windows (thanks Alex Brainman).
   3476 * misc/vim: add plugin with Fmt command (thanks Dmitry Chestnykh),
   3477         update type highlighting for new reflect package.
   3478 * net: disable multicast tests by default (thanks Dave Cheney),
   3479         sort records returned by LookupMX (thanks Corey Thomasson).
   3480 * openpgp: Fix improper := shadowing (thanks Gustavo Niemeyer).
   3481 * os: rename Open to OpenFile, add new Open, Create,
   3482         fix Readdir in Plan 9 (thanks Fazlul Shahriar).
   3483 * os/inotify: use _test for test files, not _obj.
   3484 * pkg/path: enable tests on Windows (thanks Alex Brainman).
   3485 * reflect: new Type and Value API.
   3486 * src/pkg/Makefile: trim per-directory make output except on failure.
   3487 * syscall: Add DT_* and MADV_* constants on Linux (thanks Albert Strasheim),
   3488         add Mmap, Munmap on Linux, FreeBSD, OS X,
   3489         fix StartProcess in Plan 9 (thanks Fazlul Shahriar),
   3490         fix Windows Signaled (thanks Alex Brainman).
   3491 * test/bench: enable build and test on Windows (thanks Alex Brainman).
   3492 </pre>
   3493 
   3494 <h2 id="2011-04-04">2011-04-04</h2>
   3495 
   3496 <pre>
   3497 This snapshot includes changes to the net package. Your code will require
   3498 changes if it uses the Dial or LookupHost functions.
   3499 
   3500 The laddr argument has been removed from net.Dial, and the cname return value
   3501 has been removed from net.LookupHost. The new net.LookupCNAME function can be
   3502 used  to find the canonical host for a given name.  You can update your
   3503 networking code with gofix.
   3504 
   3505 The gotest shell script has been replaced by a Go program, making testing
   3506 significantly faster.
   3507 
   3508 Other changes:
   3509 * asn1: extensions needed for parsing Kerberos.
   3510 * bufio: Write and WriteString cleanup (thanks Evan Shaw).
   3511 * bytes, strings: simplify Join (thanks Evan Shaw).
   3512 * crypto/cipher: bad CTR IV length now triggers panic.
   3513 * crypto/tls: extend NPN support to the client,
   3514 	added X509KeyPair function to parse a Certificate from memory.
   3515 * crypto/x509: parse Extended Key Usage extension (thanks Mikkel Krautz).
   3516 * debug/gosym: remove need for gotest to run preparatory commands.
   3517 * fmt: implement precision (length of input) values for %q: %.20q.
   3518 * go/parser: fix scoping for local type declarations (thanks Roger Peppe),
   3519 	package name must not be the blank identifier.
   3520 * go/printer, gofmt: remove special case for multi-line raw strings.
   3521 * gopack: add P flag to remove prefix from filename information.
   3522 * gotest: add -test.timeout option,
   3523 	replace the shell script with the compiled program written in go,
   3524 	execute gomake properly on Windows (thanks Alex Brainman).
   3525 * gotry: move into its own directory, separate from gotest.
   3526 * gotype: support for more tests, added one new test.
   3527 * http: add Transport.MaxIdleConnsPerHost,
   3528 	use upper case hex in URL escaping (thanks Matt Jones).
   3529 * httptest: add NewTLSServer.
   3530 * misc/kate: reorganize, remove closed() (thanks Evan Shaw).
   3531 * misc/notepadplus: support for notepad++ (thanks Anthony Starks).
   3532 * net: implement non-blocking connect (thanks Alexey Borzenkov).
   3533 * os: fix MkdirAll("/thisdoesnotexist") (thanks Albert Strasheim),
   3534 	Plan 9 support (thanks Yuval Pavel Zholkover),
   3535 	add a few missing Plan 9 errors (thanks Andrey Mirtchovski),
   3536 	fix FileInfo.Name returned by Stat (thanks David Forsythe).
   3537 * path/filepath.Glob: add an error return,
   3538 	don't drop known matches on error.
   3539 * path/filepath: add support for Plan 9 (thanks Andrey Mirtchovski).
   3540 * scanner: treat line comments like in Go.
   3541 * syscall: Plan 9 support (thanks Yuval Pavel Zholkover),
   3542 	StartProcess Chroot and Credential (thanks Albert Strasheim),
   3543 	add BPF support for freebsd/386, freebsd/amd64 (thanks Mikio Hara),
   3544 	make [Raw]Syscall6 pass 6th arg on linux/386 (thanks Evan Shaw).
   3545 </pre>
   3546 
   3547 <h2 id="2011-03-28">2011-03-28</h2>
   3548 
   3549 <pre>
   3550 This weekly release includes improved support for testing.
   3551 
   3552 Memory and CPU profiling is now available via the gotest tool. Gotest will
   3553 produce memory and CPU profiling data when invoked with the -test.memprofile
   3554 and -test.cpuprofile flags. Run "godoc gotest" for details.
   3555 
   3556 We have also introduced a way for tests to run quickly when an exhaustive test
   3557 is unnecessary. Gotest's new -test.short flag in combination with the testing
   3558 package's new Short function allows you to write tests that can be run in
   3559 normal or "short" mode; short mode is now used by all.bash to reduce
   3560 installation time.
   3561 The Makefiles know about the flag - you can just run "make testshort".
   3562 
   3563 Other changes:
   3564 * .hgignore: Ignore all goinstalled packages (thanks Evan Shaw).
   3565 * build: add all-qemu.bash, handful of arm fixes,
   3566         add support for SWIG, and add two SWIG examples,
   3567         diagnose Ubuntu's buggy copy of gold,
   3568         handle broken awk in version.bash (thanks Dave Cheney),
   3569         reenable clean.bash without gomake (thanks Gustavo Niemeyer).
   3570 * cgo: fix index-out-of-bounds bug.
   3571 * codereview: permit CLs of the form weekly.DATE
   3572 * crypto/ecdsa: truncate hash values.
   3573 * crypto/openpgp: add DSA signature support.
   3574 * dashboard: remove old python/bash builder, update README.
   3575 * doc: explain release and weekly tags in install.html.
   3576 * exec: document dir option for Run (thanks Gustavo Niemeyer).
   3577 * flag: document Nflag function (thanks Fazlul Shahriar).
   3578 * gc: remove interim ... error which rejects valid code.
   3579 * go/ast: implemented NewPackage,
   3580         merge CaseClause and TypeCaseClause.
   3581 * go/parser: fix memory leak by making a copy of token literals,
   3582         resolve identifiers properly.
   3583 * go/printer, gofmt: avoid exponential layout algorithm,
   3584         gofmt: simplify struct formatting and respect line breaks.
   3585 * go/scanner: to interpret line comments with Windows filenames (thanks Alex Brainman).
   3586 * go/token: use array instead of map for token-&gt;string table.
   3587 * gob: optimizations to reduce allocations,
   3588         use pointers in bootstrapType so interfaces behave properly.
   3589 * gobuilder: recognize CLs of the form weekly.DATE.
   3590 * godefs: handle volatile.
   3591 * godoc: add -template flag to specify custom templates,
   3592         fix path problem for windows (thanks Yasuhiro Matsumoto).
   3593 * gofix: httpserver - rewrite rw.SetHeader to rw.Header.Set.
   3594 * gofmt: add profiling flag.
   3595 * gopprof: fix bug: do not rotate 180 degrees for large scrolls,
   3596         update list of memory allocation functions.
   3597 * gotest: fix gofmt issue in generated _testmain.go.
   3598 * http: add NewProxyClientConn,
   3599         avoid crash when asked for multiple file ranges,
   3600         don't chunk 304 responses,
   3601         export Transport, add keep-alive support.
   3602 * ld: return > 0 exit code on unsafe import.
   3603 * misc/bbedit: remove closed keyword (thanks Anthony Starks).
   3604 * misc/emacs: gofmt: don't clobber the current buffer on failure.
   3605 * misc/vim: remove 'closed' as a builtin function.
   3606 * net: add FileConn, FilePacketConn, FileListener (thanks Albert Strasheim),
   3607         don't force epoll/kqueue to wake up in order to add new events,
   3608         let OS-specific AddFD routine wake up polling thread,
   3609         use preallocated buffer for epoll and kqueue/kevent.
   3610 * path/filepath: add EvalSymlinks function,
   3611         fix TestEvalSymlinks when run under symlinked GOROOT.
   3612 * path: work for windows (thanks Yasuhiro Matsumoto).
   3613 * rpc: increase server_test timeout (thanks Gustavo Niemeyer),
   3614         optimizations to reduce allocations.
   3615 * runtime: fix darwin/amd64 thread VM footprint (thanks Alexey Borzenkov),
   3616         fix gdb support for goroutines,
   3617         more stack split fixes,
   3618         os-specific types and code for setitimer,
   3619         update defs.h for freebsd-386 (thanks Devon H. O'Dell).
   3620 * strings: Map: avoid allocation when string is unchanged.
   3621 * syscall: GetsockoptInt (thanks Albert Strasheim),
   3622         StartProcess fixes for windows (thanks Alex Brainman),
   3623         permit non-blocking syscalls,
   3624         rename from .sh to .pl, because these files are in Perl.
   3625 * test: enable tests using v, ok := &lt;-ch syntax (thanks Robert Hencke).
   3626 * time: give a helpful message when we can't set the time zone for testing.
   3627         isolate syscall reference in sys.go.
   3628 </pre>
   3629 
   3630 <h2 id="2011-03-15">2011-03-15</h2>
   3631 
   3632 <pre>
   3633 This week's release introduces a new release tagging scheme. We intend to
   3634 continue with our weekly releases, but have renamed the existing tags from
   3635 "release" to "weekly". The "release" tag will now be applied to one hand-picked
   3636 stable release each month or two.
   3637 
   3638 The revision formerly tagged "release.2011-03-07.1" (now "weekly.2011-03-07.1")
   3639 has been nominated our first stable release, and has been given the tag
   3640 "release.r56". As we tag each stable release we will post an announcement to
   3641 the new golang-announce mailing list:
   3642   http://groups.google.com/group/golang-announce
   3643 
   3644 You can continue to keep your Go installation updated using "hg update
   3645 release", but now you should only need to update once we tag a new stable
   3646 release, which we will announce here. If you wish to stay at the leading edge,
   3647 you should switch to the weekly tag with "hg update weekly".
   3648 
   3649 
   3650 This weekly release includes significant changes to the language spec and the
   3651 http, os, and syscall packages. Your code may need to be changed. It also
   3652 introduces the new gofix tool.
   3653 
   3654 The closed function has been removed from the language. The syntax for channel
   3655 receives has been changed to return an optional second value, a boolean value
   3656 indicating whether the channel is closed. This code:
   3657 	v := &lt;-ch
   3658 	if closed(ch) {
   3659 		// channel is closed
   3660 	}
   3661 should now be written as:
   3662 	v, ok := &lt;-ch
   3663 	if !ok {
   3664 		// channel is closed
   3665 	}
   3666 
   3667 It is now illegal to declare unused labels, just as it is illegal to declare
   3668 unused local variables.
   3669 
   3670 The new gofix tool finds Go programs that use old APIs and rewrites them to use
   3671 newer ones.  After you update to a new Go release, gofix helps make the
   3672 necessary changes to your programs. Gofix will handle the http, os, and syscall
   3673 package changes described below, and we will update the program to keep up with
   3674 future changes to the libraries.
   3675 
   3676 The Hijack and Flush methods have been removed from the http.ResponseWriter
   3677 interface and are accessible via the new http.Hijacker and http.Flusher
   3678 interfaces. The RemoteAddr and UsingTLS methods have been moved from
   3679 http.ResponseWriter to http.Request.
   3680 
   3681 The http.ResponseWriter interface's SetHeader method has been replaced by a
   3682 Header() method that returns the response's http.Header. Caller code needs to
   3683 change. This code:
   3684 	rw.SetHeader("Content-Type", "text/plain")
   3685 should now be written as:
   3686 	rw.Header().Set("Content-Type", "text/plain")
   3687 The os and syscall packages' StartProcess functions now take their final three
   3688 arguments as an *os.ProcAttr and *syscall.ProcAttr values, respectively. This
   3689 code:
   3690 	os.StartProcess(bin, args, env, dir, fds)
   3691 should now be written as:
   3692 	os.StartProcess(bin, args, &amp;os.ProcAttr{Files: fds, Dir: dir, Env: env})
   3693 
   3694 The gob package will now encode and decode values of types that implement the
   3695 gob.GobEncoder and gob.GobDecoder interfaces. This allows types with unexported
   3696 fields to transmit self-consistent descriptions; one instance is big.Int and
   3697 big.Rat.
   3698 
   3699 Other changes:
   3700 * 5l, 6l, 8l: reduce binary size about 40% by omitting symbols for type, string, go.string.
   3701 * 5l, 8l: output missing section symbols (thanks Anthony Martin).
   3702 * 6l, 8l: fix gdb crash.
   3703 * Make.cmd: also clean _test* (thanks Gustavo Niemeyer).
   3704 * big: implemented custom Gob(En/De)coder for Int type.
   3705 * build: remove duplicate dependency in Make.cmd (thanks Robert Hencke),
   3706         run gotest in misc/cgo/test.
   3707 * codereview.py: don't suggest change -d if user is not CL author (thanks Robert Hencke).
   3708 * compress/lzw: benchmark a range of input sizes.
   3709 * crypto/ecdsa: add package.
   3710 * crypto/elliptic: add the N value of each curve.
   3711 * crypto/openpgp: bug fixes and fix misnamed function.
   3712 * crypto/tls: fix compile error (thanks Dave Cheney).
   3713 * doc: Effective Go: some small cleanups,
   3714         update FAQ. hello, world is now 1.1MB, down from 1.8MB,
   3715         update codelab wiki to fix template.Execute argument order.
   3716 * flag: visit the flags in sorted order, for nicer messages.
   3717 * fmt: do not export EOF = -1.
   3718 * fmt: make ScanState.Token more general (thanks Roger Peppe).
   3719 * gc: diagnose unused labels,
   3720         fix handling of return values named _,
   3721         include all dependencies in export metadata,
   3722         make unsafe.Pointer its own kind of type, instead of an equivalent to *any.
   3723 * go/ast, go/parser: populate identifier scopes at parse time.
   3724 * go/ast: add FileSet parameter to ast.Print and ast.Fprint.
   3725 * go/parser: first constant in a constant declaration must have a value.
   3726 * gob: efficiency and reliability fixes.
   3727 * gofmt: remove -trace and -ast flags.
   3728 * goinstall: handle $(GOOS) and $(GOARCH) in filenames,
   3729         handle .c files with gc when cgo isn't used, and
   3730         handle .s files with gc (thanks Gustavo Niemeyer).
   3731 * gopack: omit time stamps, makes output deterministic.
   3732 * gotype: commandline tool to typecheck go programs.
   3733 * govet: handle '*' in print format strings.
   3734 * hash: new FNV-1a implementation (thanks Pascal S. de Kloe).
   3735 * http/cgi: child support (e.g. Go CGI under Apache).
   3736 * http: adapt Cookie code to follow IETF draft (thanks Petar Maymounkov),
   3737         add test for fixed HTTP/1.0 keep-alive issue,
   3738         don't hit external network in client_test.go,
   3739         fix transport crash when request URL is nil,
   3740         rename interface Transport to RoundTripper,
   3741         run tests even with DISABLE_NET_TESTS=1.
   3742 * httptest: default the Recorder status code to 200 on a Write.
   3743 * io/ioutil: clean-up of ReadAll and ReadFile.
   3744 * ioutil: add NopCloser.
   3745 * ld: preserve symbol sizes during data layout.
   3746 * lib9, libmach: Change GOOS references to GOHOSTOS (thanks Evan Shaw).
   3747 * libmach: correct string comparison to revive 6cov on darwin (thanks Dave Cheney).
   3748 * misc/vim: Add indent script for Vim (thanks Ross Light).
   3749 * net, os, syslog: fixes for Solaris support.
   3750 * net: don't loop to drain wakeup pipe.
   3751 * nm: document -S flag.
   3752 * openpgp: add PublicKey KeyId string accessors.
   3753 * rpc: optimizations, add benchmarks and memory profiling,
   3754         use httptest.Server for tests (thanks Robert Hencke).
   3755 * runtime: reduce lock contention via wakeup on scheduler unlock,
   3756         scheduler, cgo reorganization,
   3757         split non-debugging malloc interface out of debug.go into mem.go.
   3758 * spec: clarify return statement rules.
   3759 * strings: add IndexRune tests, ASCII fast path,
   3760         better benchmark names; add BenchmarkIndex.
   3761 * syscall: implement Mount and Unmount for linux,
   3762         implement Reboot for linux.
   3763 * time: fix Time.ZoneOffset documentation (thanks Peter Mundy).
   3764 * tls: move PeerCertificates to ConnectionState.
   3765 </pre>
   3766 
   3767 <h2 id="2011-03-07">2011-03-07 (<a href="release.html#r56">base for r56</a>)</h2>
   3768 
   3769 <pre>
   3770 This release includes changes to the reflect and path packages.
   3771 Code that uses reflect or path may need to be updated.
   3772 
   3773 The reflect package's Value.Addr method has been renamed to Value.UnsafeAddr.
   3774 Code that uses the Addr method will have to call UnsafeAddr instead.
   3775 
   3776 The path package has been split into two packages: path and path/filepath.
   3777 Package path manipulates slash-separated paths, regardless of operating system.
   3778 Package filepath implements the local operating system's native file paths.
   3779 OS-specific functioanlity in pacakge path, such as Walk, moved to filepath.
   3780 
   3781 Other changes:
   3782 * build: fixes and simplifications (thanks Dave Cheney),
   3783         move $GOBIN ahead of /bin, /usr/bin in build $PATH.
   3784 * bzip2: speed up decompression.
   3785 * cgo: fix dwarf type parsing (thanks Gustavo Niemeyer),
   3786         put temporary source files in _obj (thanks Roger Peppe),
   3787         fix bug involving 0-argument callbacks.
   3788 * compress/lzw: optimizations.
   3789 * doc: add FAQ about "implements",
   3790         add FAQ about large binaries ,
   3791         add FAQ about stack vs heap allocation,
   3792         add internationalization to roadmap,
   3793         describe platform-specific conventions in code.html.
   3794 * fmt: allow recursive calls to Fscan etc (thanks Roger Peppe),
   3795         make %#p suppress leading 0x.
   3796 * gc, gopack: add some missing flags to the docs.
   3797 * gc: fix init of packages named main (thanks Gustavo Niemeyer),
   3798 * gob: make recursive map and slice types work, and other fixes.
   3799         tentative support for GobEncoder/GobDecoder interfaces.
   3800 * gobuilder: add -package flag to build external packages and -v for verbose.
   3801 * gofmt: exclude test file that is not legal Go.
   3802 * goinstall: protect against malicious filenames (thanks Roger Peppe).
   3803 * goyacc: provide -p flag to set prefix for names, documentation update.
   3804 * http: add cookie support (thanks Petar Maymounkov),
   3805         allow handlers to send non-chunked responses,
   3806         export ParseHTTPVersion,
   3807         expose Client's Transport,
   3808         use WriteProxy,
   3809         rename ClientTransport to Transport.
   3810 * http/cgi: new package.
   3811 * http/httptest: new package.
   3812 * image: add a decoding test for common file formats.
   3813 * io/ioutil: add TempDir.
   3814 * mime/multipart: Header changed from map to MIMEHeader
   3815 * path/filepath: new OS-specific path support (thanks Gustavo Niemeyer).
   3816 * reflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr).
   3817 * runtime: use kernel-supplied compare-and-swap on linux/arm.
   3818 * spec: minor clarification of scope rule for functions.
   3819 * sync/atomic: new package to expose atomic operations.
   3820 * syscall: regenerate zerrors_freebsd_amd64.go (thanks Mikio Hara),
   3821         work around FreeBSD execve kernel bug (thanks Devon H. O'Dell).
   3822 * template: document the delimiters.
   3823 * testing: run GC before each benchmark run (thanks Roger Peppe).
   3824 * unsafe: fix the documentation.
   3825 * websocket: use httptest.Server for tests (thanks Robert Hencke).
   3826 * xml: permit nested directives (thanks Chris Dollin).
   3827 </pre>
   3828 
   3829 <h2 id="2011-02-24">2011-02-24</h2>
   3830 
   3831 <pre>
   3832 This release includes changes to the http package and a small language change.
   3833 Your code will require changes if it manipulates http Headers or omits the
   3834 condition in if statements.
   3835 
   3836 The new http.Header type replaces map[string]string in the Header and Trailer
   3837 fields of http.Request and http.Response.
   3838 A Header value can be manipulated via its Get, Set, Add, and Del methods.
   3839 See http://golang.org/pkg/http/#Header
   3840 
   3841 The condition is now mandatory in if statements.
   3842 Previously it would default to true, as in switch and for statements.
   3843 This code is now illegal:
   3844 	if x := foo(); {
   3845 		// code that is always executed
   3846 	}
   3847 The same effect can be achieved like this:
   3848 	if x := foo(); true {
   3849 		// code
   3850 	}
   3851 Or, in a simpler form:
   3852 	{
   3853 		x := foo()
   3854 		// code
   3855 	}
   3856 
   3857 Other changes:
   3858 * 6l: new -Hwindowsgui flag allows to build windows gui pe (thanks Alex Brainman),
   3859 	pe fixes (thanks Wei Guangjing).
   3860 * 8l, 6l: allow for more os threads to be created on Windows (thanks Alex Brainman),
   3861 * build: reduce the use of subshells in recursive make, and
   3862 	remove unused NaCl conditional from make.bash (thanks Dave Cheney).
   3863 * codereview: fix clpatch with empty diffs (thanks Gustavo Niemeyer).
   3864 * compress/bzip2: add package.
   3865 * compress/lzw: implement a decoder.
   3866 * crypto/openpgp: add package.
   3867 * crypto/rand: add read buffer to speed up small requests (thanks Albert Strasheim).
   3868 * crypto/rsa: left-pad OAEP results when needed.
   3869 * crypto/tls: make protocol negotiation failure fatal.
   3870 * fmt: stop giving characters to the Scan method of Scanner when we hit a newline in Scanln.
   3871 * gc: interface error message fixes,
   3872 	make string const comparison unsigned (thanks Jeff R. Allen).
   3873 * go spec: minor clarification on channel types.
   3874 * go/ast, parser: condition in if statement is mandatory.
   3875 * gob: compute information about a user's type once.
   3876 	protect against pure recursive types.
   3877 * godoc: accept symbolic links as path names provided to -path,
   3878 	add robots.txt, log errors when reading filter files.
   3879 * html: tokenize HTML comments.
   3880 * http: add proxy support (thanks Yasuhiro Matsumoto),
   3881 	implement with net/textproto (thanks Petar Maymounkov),
   3882 	send full URL in proxy requests,
   3883 	introduce start of Client and ClientTransport.
   3884 * image/png: support for more formats (thanks Mikael Tillenius).
   3885 * json: only use alphanumeric tags,
   3886 	use base64 to encode []byte (thanks Roger Peppe).
   3887 * ld: detect stack overflow due to NOSPLIT, drop rpath, support weak symbols.
   3888 * misc/dashboard/builder: talk to hg with utf-8 encoding.
   3889 * misc/dashboard: notify golang-dev on build failure.
   3890 * net: *netFD.Read to return os.EOF on eof under windows (thanks Alex Brainman),
   3891 	add IPv4 multicast to UDPConn (thanks Dave Cheney),
   3892 	more accurate IPv4-in-IPv6 API test (thanks Mikio Hara),
   3893 	reject invalid net:proto network names (thanks Olivier Antoine).
   3894 * netchan: allow use of arbitrary connections (thanks Roger Peppe).
   3895 * os: add ENODATA and ENOTCONN (thanks Albert Strasheim).
   3896 * reflect: add a couple of sentences explaining how Methods operate,
   3897 	add a secret method to ArrayOrSliceType to ensure it's only implemented by arrays and slices,
   3898 	add pointer word to CommonType (placeholder for future work).
   3899 * runtime-gdb.py: gdb pretty printer for go strings properly handles length.
   3900 * runtime: various bug fixes, more complete stack traces,
   3901 	record $GOROOT_FINAL for runtime.GOROOT.
   3902 * spec: delete incorrect mention of selector working on pointer to interface type.
   3903 * sync: add Cond (thanks Gustavo Niemeyer).
   3904 * syscall: add MCL_* flags for mlockall (thanks Albert Strasheim),
   3905 	implement chmod() for win32 (thanks Yasuhiro Matsumoto).
   3906 * test/bench: update timings for new GC.
   3907 * testing: rename cmdline flags to avoid conflicts (thanks Gustavo Niemeyer).
   3908 * textproto: introduce Header type (thanks Petar Maymounkov).
   3909 * websocket: use new interface to access Header.
   3910 </pre>
   3911 
   3912 <h2 id="2011-02-15">2011-02-15</h2>
   3913 
   3914 <pre>
   3915 This release includes changes to the io, os, and template packages.
   3916 You may need to update your code.
   3917 
   3918 The io.ReadByter and io.ReadRuner interface types have been renamed to
   3919 io.ByteReader and io.RuneReader respectively.
   3920 
   3921 The os package's ForkExec function has been superseded by the new StartProcess
   3922 function and an API built around the Process type:
   3923 	http://golang.org/pkg/os/#Process
   3924 
   3925 The order of arguments to template.Execute has been reversed to be consistent
   3926 the notion of "destination first", as with io.Copy, fmt.Fprint, and others.
   3927 
   3928 Gotest now works for package main in directories using Make.cmd-based makefiles.
   3929 
   3930 The memory allocation runtime problems from the last release are not completely
   3931 fixed.  The virtual memory exhaustion problems encountered by people using
   3932 ulimit -v have been fixed, but there remain known garbage collector problems
   3933 when using GOMAXPROCS > 1.
   3934 
   3935 Other changes:
   3936 * 5l: stopped generating 64-bit eor.
   3937 * 8l: more work on plan9 support (thanks Yuval Pavel Zholkover).
   3938 * archive/zip: handle files with data descriptors.
   3939 * arm: working peep-hole optimizer.
   3940 * asn1: marshal true as 255, not 1.
   3941 * buffer.go: minor optimization, expanded comment.
   3942 * build: drop syslog on DISABLE_NET_TESTS=1 (thanks Gustavo Niemeyer),
   3943        allow clean.bash to work on fresh checkout,
   3944        change "all tests pass" message to be more obvious,
   3945        fix spaces in GOROOT (thanks Christopher Nielsen).
   3946 * bytes: fix bug in buffer.ReadBytes (thanks Evan Shaw).
   3947 * 5g: better int64 code,
   3948        don't use MVN instruction.
   3949 * cgo: don't run cgo when not compiling (thanks Gustavo Niemeyer),
   3950        fix _cgo_run timestamp file order (thanks Gustavo Niemeyer),
   3951        fix handling of signed enumerations (thanks Gustavo Niemeyer),
   3952        os/arch dependent #cgo directives (thanks Gustavo Niemeyer),
   3953        rename internal f to avoid conflict with possible C global named f.
   3954 * codereview: fix hgpatch on windows (thanks Yasuhiro Matsumoto),
   3955        record repository, base revision,
   3956        use cmd.communicate (thanks Yasuhiro Matsumoto).
   3957 * container/ring: replace Iter() with Do().
   3958 * crypto/cipher: add resync open to OCFB mode.
   3959 * crypto/openpgp/armor: bug fixes.
   3960 * crypto/openpgp/packet: new subpackage.
   3961 * crypto/tls: load a chain of certificates from a file,
   3962        select best cipher suite, not worst.
   3963 * crypto/x509: add support for name constraints.
   3964 * debug/pe: ImportedSymbols fixes (thanks Wei Guangjing).
   3965 * doc/code: update to reflect that package names need not be unique.
   3966 * doc/codelab/wiki: a bunch of fixes (thanks Andrey Mirtchovski).
   3967 * doc/install: update for new versions of Mercurial.
   3968 * encoding/line: fix line returned after EOF.
   3969 * flag: allow hexadecimal (0xFF) and octal (0377) input for integer flags.
   3970 * fmt.Scan: scan binary-exponent floating format, 2.4p-3,
   3971        hexadecimal (0xFF) and octal (0377) integers.
   3972 * fmt: document %%; also %b for floating point.
   3973 * gc, ld: detect stale or incompatible object files,
   3974        package name main no longer reserved.
   3975 * gc: correct receiver in method missing error (thanks Lorenzo Stoakes),
   3976        correct rounding of denormal constants (thanks Eoghan Sherry),
   3977        select receive bug fix.
   3978 * go/printer, gofmt: smarter handling of multi-line raw strings.
   3979 * go/printer: line comments must always end in a newline,
   3980        remove notion of "Styler", remove HTML mode.
   3981 * gob: allow Decode(nil) and have it just discard the next value.
   3982 * godoc: use IsAbs to test for absolute paths (fix for win32) (thanks Yasuhiro Matsumoto),
   3983        don't hide package lookup error if there's no command with the same name.
   3984 * gotest: enable unit tests for main programs.
   3985 * http: add Server type supporting timeouts,
   3986        add pipelining to ClientConn, ServerConn (thanks Petar Maymounkov),
   3987        handle unchunked, un-lengthed HTTP/1.1 responses.
   3988 * io: add RuneReader.
   3989 * json: correct Marshal documentation.
   3990 * netchan: graceful handling of closed connection (thanks Graham Miller).
   3991 * os: implement new Process API (thanks Alex Brainman).
   3992 * regexp tests: make some benchmarks more meaningful.
   3993 * regexp: add support for matching against text read from RuneReader interface.
   3994 * rpc: make more tolerant of errors, properly discard values (thanks Roger Peppe).
   3995 * runtime: detect failed thread creation on Windows,
   3996        faster allocator, garbage collector,
   3997        fix virtual memory exhaustion,
   3998        implemented windows console ctrl handler (SIGINT) (thanks Hector Chu),
   3999        more detailed panic traces, line number work,
   4000        improved Windows callback handling (thanks Hector Chu).
   4001 * spec: adjust notion of Assignability,
   4002        allow import of packages named main,
   4003        clarification re: method sets of newly declared pointer types,
   4004        fix a few typos (thanks Anthony Martin),
   4005        fix Typeof() return type (thanks Gustavo Niemeyer),
   4006        move to Unicode 6.0.
   4007 * sync: diagnose Unlock of unlocked Mutex,
   4008        new Waitgroup type (thanks Gustavo Niemeyer).
   4009 * syscall: add SetsockoptIpMreq (thanks Dave Cheney),
   4010        add sockaddr_dl, sysctl with routing message support for darwin, freebsd (thanks Mikio Hara),
   4011        do not use NULL for zero-length read, write,
   4012        implement windows version of Fsync (thanks Alex Brainman),
   4013        make ForkExec acquire the ForkLock under windows (thanks Hector Chu),
   4014        make windows API return errno instead of bool (thanks Alex Brainman),
   4015        remove obsolete socket IO control (thanks Mikio Hara).
   4016 * template: add simple formatter chaining (thanks Kyle Consalus),
   4017        allow a leading '*' to indirect through a pointer.
   4018 * testing: include elapsed time in test output
   4019 * windows: replace remaining __MINGW32__ instances with _WIN32 (thanks Joe Poirier).
   4020 </pre>
   4021 
   4022 <h2 id="2011-02-01">2011-02-01</h2>
   4023 
   4024 <pre>
   4025 This release includes significant changes to channel operations and minor
   4026 changes to the log package. Your code will require modification if it uses
   4027 channels in non-blocking communications or the log package's Exit functions.
   4028 
   4029 Non-blocking channel operations have been removed from the language.
   4030 The equivalent operations have always been possible using a select statement
   4031 with a default clause.  If a default clause is present in a select, that clause
   4032 will execute (only) if no other is ready, which allows one to avoid blocking on
   4033 a communication.
   4034 
   4035 For example, the old non-blocking send operation,
   4036 
   4037 	if ch &lt;- v {
   4038 		// sent
   4039 	} else {
   4040 		// not sent
   4041 	}
   4042 
   4043 should be rewritten as,
   4044 
   4045 	select {
   4046 	case ch &lt;- v:
   4047 		// sent
   4048 	default:
   4049 		// not sent
   4050 	}
   4051 
   4052 Similarly, this receive,
   4053 
   4054 	v, ok := &lt;-ch
   4055 	if ok {
   4056 		// received
   4057 	} else {
   4058 		// not received
   4059 	}
   4060 
   4061 should be rewritten as,
   4062 
   4063 	select {
   4064 	case v := &lt;-ch:
   4065 		// received
   4066 	default:
   4067 		// not received
   4068 	}
   4069 
   4070 This change is a prelude to redefining the 'comma-ok' syntax for a receive.
   4071 In a later release, a receive expression will return the received value and an
   4072 optional boolean indicating whether the channel has been closed. These changes
   4073 are being made in two stages to prevent this semantic change from silently
   4074 breaking code that uses 'comma-ok' with receives.
   4075 There are no plans to have a boolean expression form for sends.
   4076 
   4077 Sends to a closed channel will panic immediately. Previously, an unspecified
   4078 number of sends would fail silently before causing a panic.
   4079 
   4080 The log package's Exit, Exitf, and Exitln functions have been renamed Fatal,
   4081 Fatalf, and Fatalln respectively. This brings them in line with the naming of
   4082 the testing package. 
   4083 
   4084 The port to the "tiny" operating system has been removed. It is unmaintained
   4085 and untested. It was a toy to show that Go can run on raw hardware and it
   4086 served its purpose. The source code will of course remain in the repository
   4087 history, so it could be brought back if needed later.
   4088 
   4089 This release also changes some of the internal structure of the memory
   4090 allocator in preparation for other garbage collector changes. 
   4091 If you run into problems, please let us know.
   4092 There is one known issue that we are aware of but have not debugged yet:
   4093 	http://code.google.com/p/go/issues/detail?id=1464&;.
   4094 
   4095 Other changes in this release:
   4096 * 5l: document -F, force it on old ARMs (software floating point emulation)
   4097 * 6g: fix registerization of temporaries (thanks Eoghan Sherry),
   4098         fix uint64(uintptr(unsafe.Pointer(&amp;x))).
   4099 * 6l: Relocate CMOV* instructions (thanks Gustavo Niemeyer),
   4100         windows/amd64 port (thanks Wei Guangjing).
   4101 * 8l: add PE dynexport, emit DWARF in Windows PE, and
   4102         code generation fixes (thanks Wei Guangjing).
   4103 * bufio: make Flush a no-op when the buffer is empty.
   4104 * bytes: Add Buffer.ReadBytes, Buffer.ReadString (thanks Evan Shaw).
   4105 * cc: mode to generate go-code for types and variables.
   4106 * cgo: define CGO_CFLAGS and CGO_LDFLAGS in Go files (thanks Gustavo Niemeyer),
   4107         windows/386 port (thanks Wei Guangjing).
   4108 * codereview: fix windows (thanks Hector Chu),
   4109         handle file patterns better,
   4110         more ASCII vs. Unicode nonsense.
   4111 * crypto/dsa: add support for DSA.
   4112 * crypto/openpgp: add s2k.
   4113 * crypto/rand: use defer to unlock mutex (thanks Anschel Schaffer-Cohen).
   4114 * crypto/rsa: correct docstring for SignPKCS1v15.
   4115 * crypto: add package, a common place to store identifiers for hash functions.
   4116 * doc/codelab/wiki: update to work with template changes, add to run.bash.
   4117 * doc/spec: clarify address operators.
   4118 * ebnflint: exit with non-zero status on error.
   4119 * encoding/base32: new package (thanks Miek Gieben).
   4120 * encoding/line: make it an io.Reader too.
   4121 * exec: use custom error for LookPath (thanks Gustavo Niemeyer).
   4122 * fmt/doc: define width and precision for strings.
   4123 * gc: clearer error for struct == struct,
   4124         fix send precedence,
   4125         handle invalid name in type switch,
   4126         special case code for single-op blocking and non-blocking selects.
   4127 * go/scanner: fix build (adjust scanner EOF linecount).
   4128 * gob: better debugging, commentary,
   4129         make nested interfaces work,
   4130         report an error when encoding a non-empty struct with no public fields.
   4131 * godoc: full text index for whitelisted non-Go files,
   4132         show line numbers for non-go files (bug fix).
   4133 * gofmt -r: match(...) arguments may be nil; add missing guards.
   4134 * govet: add Panic to the list of functions.
   4135 * http: add host patterns (thanks Jose Luis Vzquez Gonzlez),
   4136         follow relative redirect in Get.
   4137 * json: handle capital floating point exponent (1E100) (thanks Pieter Droogendijk).
   4138 * ld: add -I option to set ELF interpreter,
   4139         more robust decoding of reflection type info in generating dwarf.
   4140 * lib9: update to Unicode 6.0.0.
   4141 * make.bash: stricter selinux test (don't complain unless it is enabled).
   4142 * misc/vim: Import/Drop commands (thanks Gustavo Niemeyer),
   4143         set 'syntax sync' to a large value (thanks Yasuhiro Matsumoto).
   4144 * net: fix race condition in test,
   4145         return cname in LookupHost.
   4146 * netchan: avoid race condition in test,
   4147         fixed documentation for import (thanks Anschel Schaffer-Cohen).
   4148 * os: add ETIMEDOUT (thanks Albert Strasheim).
   4149 * runtime: generate Go defs for C types,
   4150         implementation of callback functions for windows (thanks Alex Brainman),
   4151         make Walk web browser example work (thanks Hector Chu),
   4152         make select fairer,
   4153         prefer fixed stack allocator over general memory allocator,
   4154         simpler heap map, memory allocation.
   4155 * scanner: fix Position returned by Scan, Pos,
   4156         don't read ahead in Init.
   4157 * suffixarray: use binary search for both ends of Lookup (thanks Eric Eisner).
   4158 * syscall: add missing network interface constants (thanks Mikio Hara).
   4159 * template: treat map keys as zero, not non-existent (thanks Roger Peppe).
   4160 * time: allow canceling of After events (thanks Roger Peppe),
   4161         support Solaris zoneinfo directory.
   4162 * token/position: added SetLinesForContent.
   4163 * unicode: update to unicode 6.0.0.
   4164 * unsafe: add missing case to doc for Pointer.
   4165 </pre>
   4166 
   4167 <h2 id="2011-01-20">2011-01-20</h2>
   4168 
   4169 <pre>
   4170 This release removes the float and complex types from the language.
   4171 
   4172 The default type for a floating point literal is now float64, and
   4173 the default type for a complex literal is now complex128.
   4174 
   4175 Existing code that uses float or complex must be rewritten to
   4176 use explicitly sized types.
   4177 
   4178 The two-argument constructor cmplx is now spelled complex.
   4179 </pre>
   4180 
   4181 <h2 id="2011-01-19">2011-01-19</h2>
   4182 
   4183 <pre>
   4184 The 5g (ARM) compiler now has registerization enabled.  If you discover it
   4185 causes bugs, use 5g -N to disable the registerizer and please let us know.
   4186 
   4187 The xml package now allows the extraction of nested XML tags by specifying
   4188 struct tags of the form "parent>child". See the XML documentation for an
   4189 example: http://golang.org/pkg/xml/
   4190 
   4191 * 5a, 5l, 6a, 6l, 8a, 8l: handle out of memory, large allocations (thanks Jeff R. Allen).
   4192 * 8l: pe changes (thanks Alex Brainman).
   4193 * arm: fixes and improvements.
   4194 * cc: fix vlong condition.
   4195 * cgo: add complex float, complex double (thanks Sebastien Binet),
   4196         in _cgo_main.c define all provided symbols as functions.
   4197 * codereview: don't mail change lists with no files (thanks Ryan Hitchman).
   4198 * crypto/cipher: add OFB mode.
   4199 * expvar: add Float.
   4200 * fmt: document %X of string, []byte.
   4201 * gc, runtime: make range on channel safe for multiple goroutines.
   4202 * gc: fix typed constant declarations (thanks Anthony Martin).
   4203 * go spec: adjust language for constant typing.
   4204 * go/scanner: Make Init take a *token.File instead of a *token.FileSet.
   4205 * godoc: bring back "indexing in progress" message,
   4206         don't double HTML-escape search result snippets,
   4207         enable qualified identifiers ("math.Sin") as query strings again,
   4208         peephole optimization for generated HTML,
   4209         remove tab before formatted section.
   4210 * gofmt, go/printer: do not insert extra line breaks where they may break the code.
   4211 * http: fix Content-Range and Content-Length in response (thanks Clement Skau),
   4212         fix scheme-relative URL parsing; add ParseRequestURL,
   4213         handle HEAD requests correctly,
   4214         support for relative URLs.
   4215 * math: handle denormalized numbers in Frexp, Ilogb, Ldexp, and Logb (thanks Eoghan Sherry).
   4216 * net, syscall: return source address in Recvmsg (thanks Albert Strasheim).
   4217 * net: add LookupAddr (thanks Kyle Lemons),
   4218         add unixpacket (thanks Albert Strasheim),
   4219         avoid nil dereference if /etc/services can't be opened (thanks Corey Thomasson),
   4220         implement windows timeout (thanks Wei Guangjing).
   4221 * netchan: do not block sends; implement flow control (thanks Roger Peppe).
   4222 * regexp: reject bare '?'. (thanks Ben Lynn)
   4223 * runtime/cgo: don't define crosscall2 in dummy _cgo_main.c.
   4224 * runtime/debug: new package for printing stack traces from a running goroutine.
   4225 * runtime: add per-pause gc stats,
   4226         fix arm reflect.call boundary case,
   4227         print signal information during panic.
   4228 * spec: specify that int and uint have the same size.
   4229 * syscall: correct WSTOPPED on OS X,
   4230         correct length of GNU/Linux abstract Unix domain sockaddr,
   4231         correct length of SockaddrUnix.
   4232 * tutorial: make stdin, stdout, stderr work on Windows.
   4233 * windows: implement exception handling (thanks Hector Chu).
   4234 </pre>
   4235 
   4236 <h2 id="2011-01-12">2011-01-12</h2>
   4237 
   4238 <pre>
   4239 The json, gob, and template packages have changed, and code that uses them
   4240 may need to be updated after this release. They will no longer read or write
   4241 unexported struct fields. When marshaling a struct with json or gob the
   4242 unexported fields will be silently ignored. Attempting to unmarshal json or
   4243 gob data into an unexported field will generate an error. Accessing an
   4244 unexported field from a template will cause the Execute function to return
   4245 an error.
   4246 
   4247 Godoc now supports regular expression full text search, and this
   4248 functionality is now available on golang.org.
   4249 
   4250 Other changes:
   4251 * arm: initial cut at arm optimizer.
   4252 * bytes.Buffer: Fix bug in UnreadByte.
   4253 * cgo: export unsafe.Pointer as void*, fix enum const conflict,
   4254         output alignment fix (thanks Gustavo Niemeyer).
   4255 * crypto/block: mark as deprecated.
   4256 * crypto/openpgp: add error and armor.
   4257 * crypto: add twofish package (thanks Berengar Lehr).
   4258 * doc/spec: remove Maxalign from spec.
   4259 * encoding/line: new package for reading lines from an io.Reader.
   4260 * go/ast: correct end position for Index and TypeAssert expressions.
   4261 * gob: make (en|dec)code(Ui|I)nt methods rather than functions.
   4262 * godefs: better handling of enums.
   4263 * gofmt: don't attempt certain illegal rewrites,
   4264         rewriter matches apply to expressions only.
   4265 * goinstall: preliminary support for cgo packages (thanks Gustavo Niemeyer).
   4266 * hg: add cgo/_cgo_* to .hgignore.
   4267 * http: fix text displayed in Redirect.
   4268 * ld: fix exported dynamic symbols on Mach-O,
   4269         permit a Mach-O symbol to be exported in the dynamic symbol table.
   4270 * log: add methods for exit and panic.
   4271 * net: use closesocket api instead of CloseHandle on Windows (thanks Alex Brainman).
   4272 * netchan: make fields exported for gob change.
   4273 * os: add Sync to *File, wraps syscall.Fsync.
   4274 * runtime/cgo: Add callbacks to support SWIG.
   4275 * runtime: Restore scheduler stack position if cgo callback panics.
   4276 * suffixarray: faster creation algorithm (thanks Eric Eisner).
   4277 * syscall: fix mksysnum_linux.sh (thanks Anthony Martin).
   4278 * time.NewTicker: panic for intervals &lt;= 0.
   4279 * time: add AfterFunc to call a function after a duration (thanks Roger Peppe),
   4280         fix tick accuracy when using multiple Tickers (thanks Eoghan Sherry).</pre>
   4281 
   4282 <h2 id="2011-01-06">2011-01-06</h2>
   4283 
   4284 <pre>
   4285 This release includes several fixes and changes:
   4286 
   4287 * build: Make.pkg: use installed runtime.h for cgo.
   4288 * cgo: disallow use of C.errno.
   4289 * crypto/cipher: fix OCFB,
   4290         make NewCBCEncrypter return BlockMode.
   4291 * doc: 6l: fix documentation of -L flag,
   4292         add golanguage.ru to foreign-language doc list,
   4293         effective go: explain the effect of repanicking better,
   4294         update Effective Go for template API change,
   4295         update contribution guidelines to prefix the change description.
   4296 * encoding/binary: reject types with implementation-dependent sizes (thanks Patrick Gavlin).
   4297 * exp/evalsimple fix handling of slices like s[:2] (thanks Sebastien Binet).
   4298 * fmt: made format string handling more efficient,
   4299         normalize processing of format string.
   4300 * gc: return constant floats for parts of complex constants (thanks Anthony Martin),
   4301         rewrite complex /= to l = l / r (thanks Patrick Gavlin),
   4302         fix &amp;^=.
   4303 * go/ast: provide complete node text range info.
   4304 * gob: generate a better error message in one confusing place.
   4305 * godoc: fix godoc -src (thanks Icarus Sparry).
   4306 * goinstall: add -clean flag (thanks Kyle Lemons),
   4307         add checkout concept (thanks Caine Tighe),
   4308         fix -u for bzr (thanks Gustavo Niemeyer).
   4309 * http: permit empty Reason-Phrase in response Status-Line.
   4310 * io: fix Copyn EOF handling.
   4311 * net: fix close of Listener (thanks Michael Hoisie).
   4312 * regexp: fix performance bug, make anchored searches fail fast,
   4313         fix prefix bug.
   4314 * runtime/cgo: fix stackguard on FreeBSD/amd64 (thanks Anthony Martin).
   4315 * strconv: atof: added 'E' as valid token for exponent (thanks Stefan Nilsson),
   4316         update ftoa comment for 'E' and 'G'.
   4317 * strings: fix description of FieldsFunc (thanks Roger Peppe).
   4318 * syscall: correct Linux Splice definition,
   4319         make Access second argument consistently uint32.
   4320 </pre>
   4321 
   4322 <h2 id="2010-12-22">2010-12-22</h2>
   4323 
   4324 <pre>
   4325 A small release this week. The most significant change is that some 
   4326 outstanding cgo issues were resolved.
   4327 
   4328 * cgo: handle references to symbols in shared libraries.
   4329 * crypto/elliptic: add serialisation and key pair generation.
   4330 * crypto/hmac: add HMAC-SHA256 (thanks Anthony Martin).
   4331 * crypto/tls: add ECDHE support ("Elliptic Curve Diffie Hellman Ephemeral"),
   4332         add support code for generating handshake scripts for testing.
   4333 * darwin, freebsd: ignore write failure (during print, panic).
   4334 * exp/draw: remove Border function.
   4335 * expvar: quote StringFunc output, same as String output.
   4336 * hash/crc64: fix typo in Sum.
   4337 * ld: allow relocations pointing at ELF .bss symbols, ignore stab symbols.
   4338 * misc/cgo/life: fix, add to build.
   4339 * regexp: add HasMeta, HasOperator, and String methods to Regexp.
   4340 * suffixarray: implemented FindAllIndex regexp search.
   4341 * test/bench: update numbers for regex-dna after speedup to regexp.
   4342 * time: explain the formats a little better.
   4343 </pre>
   4344 
   4345 <h2 id="2010-12-15">2010-12-15</h2>
   4346 
   4347 <pre>
   4348 Package crypto/cipher has been started, to replace crypto/block.
   4349 As part of the changes, rc4.Cipher's XORKeyStream method signature has changed from
   4350         XORKeyStream(buf []byte)
   4351 to
   4352         XORKeyStream(dst, src []byte)
   4353 to implement the cipher.Stream interface.  If you use crypto/block, you'll need
   4354 to switch to crypto/cipher once it is complete.
   4355 
   4356 Package smtp's StartTLS now takes a *tls.Config argument.
   4357 
   4358 Package reflect's ArrayCopy has been renamed to Copy.  There are new functions
   4359 Append and AppendSlice.
   4360 
   4361 The print/println bootstrapping functions now write to standard error.
   4362 To write to standard output, use fmt.Print[ln].
   4363 
   4364 A new tool, govet, has been added to the Go distribution. Govet is a static
   4365 checker for Go programs. At the moment, and for the foreseeable future,
   4366 it only checks arguments to print calls.
   4367 
   4368 The cgo tool for writing Go bindings for C code has changed so that it no
   4369 longer uses stub .so files (like cgo_stdio.so).  Cgo-based packages using the
   4370 standard Makefiles should build without any changes.  Any alternate build
   4371 mechanisms will need to be updated.
   4372 
   4373 The C and Go compilers (6g, 6c, 8g, 8c, 5g, 5c) now align structs according to
   4374 the maximum alignment of the fields they contain; previously they aligned
   4375 structs to word boundaries.  This may break non-cgo-based code that attempts to
   4376 mix C and Go.
   4377 
   4378 NaCl support has been removed. The recent linker changes broke NaCl support
   4379 a month ago, and there are no known users of it.
   4380 If necessary, the NaCl code can be recovered from the repository history.
   4381 
   4382 * 5g/8g, 8l, ld, prof: fix output of 32-bit values (thanks Eoghan Sherry).
   4383 * [68]l and runtime: GDB support for interfaces and goroutines.
   4384 * 6l, 8l: support for linking ELF and Mach-O .o files.
   4385 * all: simplify two-variable ranges with unused second variable (thanks Ryan Hitchman).
   4386 * arm: updated soft float support.
   4387 * codereview: keep quiet when not in use (thanks Eoghan Sherry).
   4388 * compress/flate: implement Flush, equivalent to zlib's Z_SYNC_FLUSH.
   4389 * crypto/tls: use rand.Reader in cert generation example (thanks Anthony Martin).
   4390 * dashboard: fix project tag filter.
   4391 * debug/elf, debug/macho: add ImportedLibraries, ImportedSymbols.
   4392 * doc/go_mem: goroutine exit is not special.
   4393 * event.go: another print glitch from gocheck.
   4394 * gc: bug fixes,
   4395         syntax error for incomplete chan type (thanks Ryan Hitchman).
   4396 * go/ast: fix ast.Walk.
   4397 * gob: document the byte count used in the encoding of values,
   4398         fix bug sending zero-length top-level slices and maps,
   4399         Register should use the original type, not the indirected one.
   4400 * godashboard: support submitting projects with non-ascii names (thanks Ryan Hitchman)
   4401 * godefs: guard against structs with pad fields
   4402 * godoc: added textual search, to enable use -fulltext flag.
   4403 * gofmt: simplify "x, _ = range y" to "x = range y".
   4404 * gopack: allow ELF/Mach-O objects in .a files without clearing allobj.
   4405 * go/token,scanner: fix comments so godoc aligns properly.
   4406 * govet: on error continue to the next file (thanks Christopher Wedgwood).
   4407 * html: improved parsing.
   4408 * http: ServeFile handles Range header for partial requests.
   4409 * json: check for invalid UTF-8.
   4410 * ld: allow .o files with no symbols,
   4411         reading of ELF object files,
   4412         reading of Mach-O object files.
   4413 * math: change float64 bias constant from 1022 to 1023 (thanks Eoghan Sherry),
   4414         rename the MinFloat constant to SmallestNonzeroFloat.
   4415 * nm: silently ignore .o files in .a files.
   4416 * os: fix test of RemoveAll.
   4417 * os/inotify: new package (thanks Balazs Lecz).
   4418 * os: make MkdirAll work with symlinks (thanks Ryan Hitchman).
   4419 * regexp: speed up by about 30%; also simplify code for brackets.
   4420 * runtime/linux/386: set FPU to 64-bit precision.
   4421 * runtime: remove paranoid mapping at 0.
   4422 * suffixarray: add Bytes function.
   4423 * syscall: add network interface constants for linux/386, linux/amd64 (thanks Mikio Hara).
   4424 * syscall/windows: restrict access rights param of OpenProcess(),
   4425         remove \r and \n from error messages (thanks Alex Brainman).
   4426 * test/bench: fixes to timing.sh (thanks Anthony Martin).
   4427 * time: fix bug in Ticker: shutdown using channel rather than memory.
   4428 * token/position: provide FileSet.File, provide files iterator.
   4429 * xml: disallow invalid Unicode code points (thanks Nigel Kerr).
   4430 </pre>
   4431 
   4432 <h2 id="2010-12-08">2010-12-08</h2>
   4433 
   4434 <pre>
   4435 This release includes some package changes. If you use the crypto/tls or
   4436 go/parser packages your code may require changes.
   4437 
   4438 The crypto/tls package's Dial function now takes an additional *Config
   4439 argument.  Most uses will pass nil to get the same default behavior as before.
   4440 See the documentation for details:
   4441         http://golang.org/pkg/crypto/tls/#Config
   4442         http://golang.org/pkg/crypto/tls/#Dial
   4443 
   4444 The go/parser package's ParseFile function now takes a *token.FileSet as its
   4445 first argument. This is a pointer to a data structure used to store
   4446 position information. If you don't care about position information you
   4447 can pass "token.NewFileSet()". See the documentation for details:
   4448         http://golang.org/pkg/go/parser/#ParseFile
   4449 
   4450 This release also splits the patent grant text out of the LICENSE file into a
   4451 separate PATENTS file and changes it to be more like the WebM grant.
   4452 These clarifications were made at the request of the Fedora project.
   4453 
   4454 Other changes:
   4455 * [68]l: generate debug info for builtin structured types, prettyprinting in gdb.
   4456 * 8l: add dynimport to import table in Windows PE (thanks Wei Guangjing).
   4457 * 8l, runtime: fix Plan 9 386 build (thanks Yuval Pavel Zholkover).
   4458 * all: fix broken calls to Printf etc.
   4459 * bufio: make Reader.Read implement io.Reader semantics (thanks Roger Peppe).
   4460 * build: allow archiver to be specified by HOST_AR (thanks Albert Strasheim).
   4461 * bytes: add Buffer.UnreadRune, Buffer.UnreadByte (thanks Roger Peppe).
   4462 * crypto/tls: fix build of certificate generation example (thanks Christian Himpel).
   4463 * doc/install: describe GOHOSTOS and GOHOSTARCH.
   4464 * errchk: accept multiple source files (thanks Eoghan Sherry).
   4465 * exec.LookPath: return os.PathError instad of os.ENOENT (thanks Michael Hoisie)..
   4466 * flag: fix format error in boolean error report,
   4467         handle multiple calls to flag.Parse.
   4468 * fmt: add %U format for standard Unicode representation of code point values.
   4469 * gc: fix method offsets of anonymous interfaces (thanks Eoghan Sherry),
   4470         skip undefined symbols in import . (thanks Eoghan Sherry).
   4471 * go/scanner: remove Tokenize - was only used in tests
   4472 * gobuilder: add buildroot command-line flag (thanks Devon H. O'Dell).
   4473 * html: unescape numeric entities (thanks Ryan Hitchman).
   4474 * http: Add EncodeQuery, helper for constructing query strings.
   4475 * ld: fix dwarf decoding of 64-bit reflect values (thanks Eoghan Sherry).
   4476 * math: improve accuracy of Exp2 (thanks Eoghan Sherry).
   4477 * runtime: add Goroutines (thanks Keith Rarick).
   4478 * sync: small naming fix for armv5 (thanks Dean Prichard).
   4479 * syscall, net: Add Recvmsg and Sendmsg on Linux (thanks Albert Strasheim).
   4480 * time: make After use fewer goroutines and host processes (thanks Roger Peppe).
   4481 </pre>
   4482 
   4483 <h2 id="2010-12-02">2010-12-02</h2>
   4484 
   4485 <pre>
   4486 Several package changes in this release may require you to update your code if
   4487 you use the bytes, template, or utf8 packages. In all cases, any outdated code
   4488 will fail to compile rather than behave erroneously.
   4489 
   4490 The bytes package has changed. Its Add and AddByte functions have been removed,
   4491 as their functionality is provided by the recently-introduced built-in function
   4492 "append". Any code that uses them will need to be changed:
   4493 s = bytes.Add(s, b)    -&gt;    s = append(s, b...)
   4494 s = bytes.AddByte(b, c)    -&gt;    s = append(s, b)
   4495 s = bytes.Add(nil, c)    -&gt;    append([]byte(nil), c)
   4496 
   4497 The template package has changed. Your code will need to be updated if it calls
   4498 the HTMLFormatter or StringFormatter functions, or implements its own formatter
   4499 functions. The function signature for formatter types has changed to:
   4500         func(wr io.Writer, formatter string, data ...interface{})
   4501 to allow multiple arguments to the formatter.  No templates will need updating.
   4502 See the change for examples:
   4503         http://code.google.com/p/go/source/detail?r=2c2be793120e
   4504 
   4505 The template change permits the implementation of multi-word variable
   4506 instantiation for formatters. Before one could say
   4507         {field}
   4508 or
   4509         {field|formatter}
   4510 Now one can also say
   4511         {field1 field2 field3}
   4512 or
   4513         {field1 field2 field3|formatter}
   4514 and the fields are passed as successive arguments to the formatter,
   4515 by analogy to fmt.Print.
   4516 
   4517 The utf8 package has changed. The order of EncodeRune's arguments has been
   4518 reversed to satisfy the convention of "destination first".
   4519 Any code that uses EncodeRune will need to be updated.
   4520 
   4521 Other changes:
   4522 * [68]l: correct dwarf location for globals and ranges for arrays.
   4523 * big: fix (*Rat) SetFrac64(a, b) when b &lt; 0 (thanks Eoghan Sherry).
   4524 * compress/flate: fix typo in comment (thanks Mathieu Lonjaret).
   4525 * crypto/elliptic: use a Jacobian transform for better performance.
   4526 * doc/code.html: fix reference to "gomake build" (thanks Anschel Schaffer-Cohen).
   4527 * doc/roadmap: update gdb status.
   4528 * doc/spec: fixed some omissions and type errors.
   4529 * doc: some typo fixes (thanks Peter Mundy).
   4530 * exp/eval: build fix for parser.ParseFile API change (thanks Anschel Schaffer-Cohen).
   4531 * fmt: Scan accepts Inf and NaN,
   4532         allow "% X" as well as "% x".
   4533 * go/printer: preserve newlines in func parameter lists (thanks Jamie Gennis).
   4534 * http: consume request body before next request.
   4535 * log: ensure writes are atomic (thanks Roger Peppe).
   4536 * path: Windows support for Split (thanks Benny Siegert).
   4537 * runtime: fix SysFree to really free memory on Windows (thanks Alex Brainman),
   4538         parallel definitions in Go for all C structs.
   4539 * sort: avoid overflow in pivot calculation,
   4540         reduced stack depth to lg(n) in quickSort (thanks Stefan Nilsson).
   4541 * strconv: Atof on Infs and NaNs.
   4542 </pre>
   4543 
   4544 <h2 id="2010-11-23">2010-11-23</h2>
   4545 
   4546 <pre>
   4547 This release includes a backwards-incompatible package change to the
   4548 sort.Search function (introduced in the last release).
   4549 See the change for details and examples of how you might change your code:
   4550         http://code.google.com/p/go/source/detail?r=102866c369
   4551 
   4552 * build: automatically #define _64BIT in 6c.
   4553 * cgo: print required space after parameter name in wrapper function.
   4554 * crypto/cipher: new package to replace crypto/block (thanks Adam Langley).
   4555 * crypto/elliptic: new package, implements elliptic curves over prime fields (thanks Adam Langley).
   4556 * crypto/x509: policy OID support and fixes (thanks Adam Langley).
   4557 * doc: add link to codewalks,
   4558         fix recover() documentation (thanks Anschel Schaffer-Cohen),
   4559         explain how to write Makefiles for commands.
   4560 * exec: enable more tests on windows (thanks Alex Brainman).
   4561 * gc: adjustable hash code in typecheck of composite literals
   4562         (thanks to vskrap, Andrey Mirtchovski, and Eoghan Sherry).
   4563 * gc: better error message for bad type in channel send (thanks Anthony Martin).
   4564 * godoc: bug fix in relativePath,
   4565         compute search index for all file systems under godoc's observation,
   4566         use correct time stamp to indicate accuracy of search result.
   4567 * index/suffixarray: use sort.Search.
   4568 * net: add ReadFrom and WriteTo windows version (thanks Wei Guangjing).
   4569 * reflect: remove unnecessary casts in Get methods.
   4570 * rpc: add RegisterName to allow override of default type name.
   4571 * runtime: free memory allocated by windows CommandLineToArgv (thanks Alex Brainman).
   4572 * sort: simplify Search (thanks Roger Peppe).
   4573 * strings: add LastIndexAny (thanks Benny Siegert).
   4574 </pre>
   4575 
   4576 <h2 id="2010-11-10">2010-11-10</h2>
   4577 
   4578 <pre>
   4579 The birthday release includes a new Search capability inside the sort package.
   4580 It takes an unusual but very general and easy-to-use approach to searching
   4581 arbitrary indexable sorted data.  See the documentation for details:
   4582     http://golang.org/pkg/sort/#Search
   4583 
   4584 The ARM port now uses the hardware floating point unit (VFP).  It still has a
   4585 few bugs, mostly around conversions between unsigned integer and floating-point
   4586 values, but it's stabilizing.
   4587 
   4588 In addition, there have been many smaller fixes and updates: 
   4589 
   4590 * 6l: generate dwarf variable names with disambiguating suffix.
   4591 * container/list: make Remove return Value of removed element.
   4592     makes it easier to remove first or last item.
   4593 * crypto: add cast5 (default PGP cipher),
   4594     switch block cipher methods to be destination first.
   4595 * crypto/tls: use pool building for certificate checking
   4596 * go/ast: change embedded token.Position fields to named fields
   4597     (preparation for a different position representation)
   4598 * net: provide public access to file descriptors (thanks Keith Rarick)
   4599 * os: add Expand function to evaluate environment variables.
   4600 * path: add Glob (thanks Benny Siegert)
   4601 * runtime: memequal optimization (thanks Graham Miller)
   4602     prefix all external symbols with "runtime" to avoid
   4603     conflicts linking with external C libraries.
   4604 </pre>
   4605 
   4606 <h2 id="2010-11-02">2010-11-02</h2>
   4607 
   4608 <pre>
   4609 This release includes a language change: the new built-in function, append.
   4610 Append makes growing slices much simpler. See the spec for details:
   4611         http://golang.org/doc/go_spec.html#Appending_and_copying_slices
   4612 
   4613 Other changes:
   4614 * 8l: pe generation fixes (thanks Alex Brainman).
   4615 * doc: Effective Go: append and a few words about "..." args.
   4616 * build: fiddle with make variables.
   4617 * codereview: fix sync and download in Python 2.7 (thanks Fazlul Shahriar).
   4618 * debug/pe, cgo: add windows support (thanks Wei Guangjing).
   4619 * go/ast: add Inspect function for easy AST inspection w/o a visitor.
   4620 * go/printer: do not remove parens around composite literals starting with
   4621         a type name in control clauses.
   4622 * go/scanner: bug fixes, revisions, and more tests.
   4623 * gob: several fixes and documentation updates.
   4624 * godoc: bug fix (bug introduced with revision 3ee58453e961).
   4625 * gotest: print empty benchmark list in a way that gofmt will leave alone.
   4626 * http server: correctly respond with 304 NotModified (thanks Michael Hoisie).
   4627 * kate: update list of builtins (thanks Evan Shaw).
   4628 * libutf: update to Unicode 5.2.0 to match pkg/unicode (thanks Anthony Martin).
   4629 * misc/bbedit: update list of builtins (thanks Anthony Starks).
   4630 * misc/vim: update list of builtins.
   4631 * mkrunetype: install a Makefile and tweak it slightly so it can be built.
   4632 * netchan: fix locking bug.
   4633 * pidigits: minor improvements (thanks Evan Shaw).
   4634 * rpc: fix client deadlock bug.
   4635 * src: use append where appropriate (often instead of vector).
   4636 * strings: add Contains helper function (thanks Brad Fitzpatrick).
   4637 * syscall: SIO constants for Linux (thanks Albert Strasheim),
   4638         Stat(path) on windows (thanks Alex Brainman).
   4639 * test/ken/convert.go: add conversion torture test.
   4640 * testing: add Benchmark (thanks Roger Peppe).
   4641 </pre>
   4642 
   4643 <h2 id="2010-10-27">2010-10-27</h2>
   4644 
   4645 <pre>
   4646 *** This release changes the encoding used by package gob. 
   4647     If you store gobs on disk, see below. ***
   4648 
   4649 The ARM port (5g) now passes all tests. The optimizer is not yet enabled, and
   4650 floating point arithmetic is performed entirely in software. Work is underway
   4651 to address both of these deficiencies.
   4652 
   4653 The syntax for arrays, slices, and maps of composite literals has been
   4654 simplified. Within a composite literal of array, slice, or map type, elements
   4655 that are themselves composite literals may elide the type if it is identical to
   4656 the outer literal's element type. For example, these expressions:
   4657 	[][]int{[]int{1, 2, 3}, []int{4, 5}}
   4658 	map[string]Point{"x": Point{1.5, -3.5}, "y": Point{0, 0}}
   4659 can be simplified to:
   4660 	[][]int{{1, 2, 3}, {4, 5}}
   4661 	map[string]Point{"x": {1.5, -3.5}, "y": {0, 0}}
   4662 Gofmt can make these simplifications mechanically when invoked with the 
   4663 new -s flag.
   4664 
   4665 The built-in copy function can now copy bytes from a string value to a []byte.
   4666 Code like this (for []byte b and string s): 
   4667 	for i := 0; i &lt; len(s); i++ {
   4668 		b[i] = s[i]
   4669 	}
   4670 can be rewritten as:
   4671 	copy(b, s)
   4672 
   4673 The gob package can now encode and decode interface values containing types
   4674 registered ahead of time with the new Register function. These changes required
   4675 a backwards-incompatible change to the wire format.  Data written with the old
   4676 version of the package will not be readable with the new one, and vice versa.
   4677 (Steps were made in this change to make sure this doesn't happen again.) 
   4678 We don't know of anyone using gobs to create permanent data, but if you do this
   4679 and need help converting, please let us know, and do not update to this release
   4680 yet.  We will help you convert your data.
   4681 
   4682 Other changes:
   4683 * 5g, 6g, 8g: generate code for string index instead of calling function.
   4684 * 5l, 6l, 8l: introduce sub-symbols.
   4685 * 6l/8l: global and local variables and type info.
   4686 * Make.inc: delete unnecessary -fno-inline flag to quietgcc.
   4687 * arm: precise float64 software floating point, bug fixes.
   4688 * big: arm assembly, faster software mulWW, divWW.
   4689 * build: only print "You need to add foo to PATH" when needed.
   4690 * container/list: fix Remove bug and use pointer to self as identifier.
   4691 * doc: show page title in browser title bar,
   4692         update roadmap.
   4693 * encoding/binary: give LittleEndian, BigEndian specific types.
   4694 * go/parser: consume auto-inserted semi when calling ParseExpr().
   4695 * gobuilder: pass GOHOSTOS and GOHOSTARCH to build,
   4696         write build and benchmarking logs to disk.
   4697 * goinstall: display helpful message when encountering a cgo package,
   4698         fix test for multiple package names (thanks Fazlul Shahriar).
   4699 * gotest: generate correct gofmt-formatted _testmain.go.
   4700 * image/png: speed up paletted encoding ~25% (thanks Brad Fitzpatrick).
   4701 * misc: update python scripts to specify python2 as python3 is now "python".
   4702 * net: fix comment on Dial to mention unix/unixgram.
   4703 * rpc: expose Server type to allow multiple RPC Server instances.
   4704 * runtime: print unknown types in panic.
   4705 * spec: append built-in (not yet implemented).
   4706 * src: gofmt -s -w src misc.
   4707         update code to use copy-from-string.
   4708 * test/bench: update numbers.
   4709 * websocket: fix short Read.
   4710 </pre>
   4711 
   4712 <h2 id="2010-10-20">2010-10-20</h2>
   4713 
   4714 <pre>
   4715 This release removes the log package's deprecated functions.
   4716 Code that has not been updated to use the new interface will break.
   4717 See the previous release notes for details:
   4718 	http://golang.org/doc/devel/release.html#2010-10-13
   4719 
   4720 Also included are major improvements to the linker. It is now faster, 
   4721 uses less memory, and more parallelizable (but not yet parallel).
   4722 
   4723 The nntp package has been removed from the standard library.
   4724 Its new home is the nntp-go project at Google Code:
   4725 	http://code.google.com/p/nntp-go
   4726 You can install it with goinstall:
   4727 	goinstall nntp-go.googlecode.com/hg/nntp
   4728 And import it in your code like so:
   4729 	import "nntp-go.googlecode.com/hg/nntp"
   4730 
   4731 Other changes:
   4732 * 6g: avoid too-large immediate constants.
   4733 * 8l, runtime: initial support for Plan 9 (thanks Yuval Pavel Zholkover).
   4734 * 6l, 8l: more improvements on exporting debug information (DWARF).
   4735 * arm: code gen fixes. Most tests now pass, except for floating point code.
   4736 * big: add random number generation (thanks Florian Uekermann).
   4737 * gc: keep track of real actual type of identifiers,
   4738 	report that shift must be unsigned integer,
   4739 	select receive with implicit conversion.
   4740 * goplay: fix to run under windows (thanks Yasuhiro Matsumoto).
   4741 * http: do not close connection after sending HTTP/1.0 request.
   4742 * netchan: add new method Hangup to terminate transmission on a channel.
   4743 * os: change TestForkExec so it can run on windows (thanks Yasuhiro Matsumoto).
   4744 * runtime: don't let select split stack.
   4745 * syscall/arm: correct 64-bit system call arguments.
   4746 </pre>
   4747 
   4748 <h2 id="2010-10-13">2010-10-13</h2>
   4749 
   4750 <pre>
   4751 This release includes changes to the log package, the removal of exp/iterable,
   4752 two new tools (gotry and goplay), one small language change, and many other
   4753 changes and fixes.  If you use the log or iterable packages, you need to make
   4754 changes to your code.
   4755 
   4756 The log package has changed.  Loggers now have only one output, and output to
   4757 standard error by default.  The names have also changed, although the old names
   4758 are still supported.  They will be deleted in the next release, though, so it
   4759 would be good to update now if you can.  For most purposes all you need to do
   4760 is make these substitutions:
   4761         log.Stderr -&gt; log.Println or log.Print
   4762         log.Stderrf -&gt; log.Printf
   4763         log.Crash -&gt; log.Panicln or log.Panic
   4764         log.Crashf -&gt; log.Panicf
   4765         log.Exit -&gt; log.Exitln or log.Exit
   4766         log.Exitf -&gt; log.Exitf (no change)
   4767 Calls to log.New() must drop the second argument.
   4768 Also, custom loggers with exit or panic properties will need to be reworked.
   4769 For full details, see the change description:
   4770         http://code.google.com/p/go/source/detail?r=d8a3c7563d
   4771 
   4772 The language change is that uses of pointers to interface values no longer
   4773 automatically dereference the pointer.  A pointer to an interface value is more
   4774 often a beginner's bug than correct code.
   4775 
   4776 The package exp/iterable has been removed. It was an interesting experiment,
   4777 but it encourages writing inefficient code and has outlived its utility.
   4778 
   4779 The new tools:
   4780 * gotry: an exercise in reflection and an unusual tool. Run 'gotry' for details.
   4781 * goplay: a stand-alone version of the Go Playground. See misc/goplay.
   4782 
   4783 Other changes:
   4784 * 6l: Mach-O fixes, and fix to work with OS X nm/otool (thanks Jim McGrath).
   4785 * [568]a: correct line numbers for statements.
   4786 * arm: code generation and runtime fixes,
   4787 	adjust recover for new reflect.call,
   4788 	enable 6 more tests after net fix.
   4789 * big: fix panic and round correctly in Rat.FloatString (thanks Anthony Martin).
   4790 * build: Make.cmd: remove $(OFILES) (thanks Eric Clark),
   4791         Make.pkg: remove .so before installing new one,
   4792         add GOHOSTOS and GOHOSTARCH environment variables.
   4793 * crypto/tls: better error messages for certificate issues,
   4794         make SetReadTimeout work.
   4795 * doc: add Sydney University video,
   4796 	add The Expressiveness of Go talk.
   4797 * exp/draw/x11: support X11 vendors other than "The X.Org Foundation".
   4798 * expvar: add (*Int).Set (thanks Sam Thorogood).
   4799 * fmt: add Errorf helper function,
   4800         allow %d on []byte.
   4801 * gc: O(1) string comparison when lengths differ,
   4802         various bug fixes.
   4803 * http: return the correct error if a header line is too long.
   4804 * image: add image.Tiled type, the Go equivalent of Plan 9's repl bit.
   4805 * ld: be less picky about bad line number info.
   4806 * misc/cgo/life: fix for new slice rules (thanks Graham Miller).
   4807 * net: allow _ in DNS names.
   4808 * netchan: export before import when testing, and
   4809         zero out request to ensure correct gob decoding. (thanks Roger Peppe).
   4810 * os: make tests work on windows (thanks Alex Brainman).
   4811 * runtime: bug fix: serialize mcache allocation,
   4812         correct iteration of large map values,
   4813         faster strequal, memequal (thanks Graham Miller),
   4814         fix argument dump in traceback,
   4815         fix tiny build.
   4816 * smtp: new package (thanks Evan Shaw).
   4817 * syscall: add sockaddr_ll support for linux/386, linux/amd64 (thanks Mikio Hara),
   4818         add ucred structure for SCM_CREDENTIALS over UNIX sockets. (thanks Albert Strasheim).
   4819 * syscall: implement WaitStatus and Wait4() for windows (thanks Wei Guangjing).
   4820 * time: add After.
   4821 * websocket: enable tests on windows (thanks Alex Brainman).
   4822 </pre>
   4823 
   4824 <h2 id="2010-09-29">2010-09-29</h2>
   4825 
   4826 <pre>
   4827 This release includes some minor language changes and some significant package
   4828 changes. You may need to change your code if you use ...T parameters or the
   4829 http package.
   4830 
   4831 The semantics and syntax of forwarding ...T parameters have changed.
   4832         func message(f string, s ...interface{}) { fmt.Printf(f, s) }
   4833 Here, s has type []interface{} and contains the parameters passed to message.
   4834 Before this language change, the compiler recognized when a function call
   4835 passed a ... parameter to another ... parameter of the same type, and just
   4836 passed it as though it was a list of arguments.  But this meant that you
   4837 couldn't control whether to pass the slice as a single argument and you
   4838 couldn't pass a regular slice as a ... parameter, which can be handy.  This
   4839 change gives you that control at the cost of a few characters in the call.
   4840 If you want the promotion to ...,  append ... to the argument:
   4841         func message(f string, s ...interface{}) { fmt.Printf(f, s...) }
   4842 Without the ..., s would be passed to Printf as a single argument of type
   4843 []interface{}.  The bad news is you might need to fix up some of your code, 
   4844 but the compiler will detect the situation and warn you.
   4845 
   4846 Also, the http.Handler and http.HandlerFunc types have changed. Where http
   4847 handler functions previously accepted an *http.Conn, they now take an interface
   4848 type http.ResponseWriter. ResponseWriter implements the same methods as *Conn,
   4849 so in most cases the only change required will be changing the type signature
   4850 of your handler function's first parameter. See:
   4851   http://golang.org/pkg/http/#Handler
   4852 
   4853 The utf8 package has a new type, String, that provides efficient indexing 
   4854 into utf8 strings by rune (previously an expensive conversion to []int 
   4855 was required). See:
   4856   http://golang.org/pkg/utf8/#String
   4857 
   4858 The compiler will now automatically insert a semicolon at the end of a file if
   4859 one is not found. This effect of this is that Go source files are no longer
   4860 required to have a trailing newline.
   4861 
   4862 Other changes:
   4863 * 6prof: more accurate usage message.
   4864 * archive/zip: new package for reading Zip files.
   4865 * arm: fix code generation, 10 more package tests pass.
   4866 * asn1: make interface consistent with json.
   4867 * bufio.UnreadRune: fix bug at EOF.
   4868 * build: clear custom variables like GREP_OPTIONS,
   4869         silence warnings generated by ubuntu gcc,
   4870         use full path when compiling libraries.
   4871 * bytes, strings: change lastIndexFunc to use DecodeLastRune (thanks Roger Peppe).
   4872 * doc: add to and consolidate non-english doc references,
   4873         consolidate FAQs into a single file, go_faq.html,
   4874         updates for new http interface.
   4875 * fmt/Printf: document and tweak error messages produced for bad formats.
   4876 * gc: allow select case expr = &lt;-c,
   4877         eliminate duplicates in method table,
   4878         fix reflect table method receiver,
   4879         improve error message for x \= 0.
   4880 * go/scanner: treat EOF like a newline for purposes of semicolon insertion.
   4881 * gofmt: stability improvements.
   4882 * gotest: leave _testmain.go for "make clean" to clean up.
   4883 * http: correct escaping of different parts of URL,
   4884         support HTTP/1.0 Keep-Alive.
   4885 * json: do not write to unexported fields.
   4886 * libcgo: don't build for NaCl,
   4887         set g, m in thread local storage for windows 386 (thanks Wei Guangjing).
   4888 * math: Fix off-by-one error in Ilogb and Logb.  (thanks Charles L. Dorian).
   4889 * misc/dashboard/builder: remove build files after benchmarking.
   4890 * nacl: update instructions for new SDK.
   4891 * net: enable v4-over-v6 on ip sockets,
   4892         fix crash in DialIP.
   4893 * os: check for valid arguments in windows Readdir (thanks Peter Mundy).
   4894 * runtime: add mmap of null page just in case,
   4895         correct stats in SysFree,
   4896         fix unwindstack crash.
   4897 * syscall: add IPPROTO_IPV6 and IPV6_V6ONLY const to fix nacl and windows build,
   4898         add inotify on Linux (thanks Balazs Lecz),
   4899         fix socketpair in syscall_bsd,
   4900         fix windows value of IPV6_V6ONLY (thanks Alex Brainman),
   4901         implement windows version of Utimes (thanks Alex Brainman),
   4902         make mkall.sh work for nacl.
   4903 * test: Add test that causes incorrect error from gccgo.
   4904 * utf8: add DecodeLastRune and DecodeLastRuneInString (thanks Roger Peppe).
   4905 * xml: Allow entities inside CDATA tags (thanks Dan Sinclair).
   4906 </pre>
   4907 
   4908 <h2 id="2010-09-22">2010-09-22</h2>
   4909 
   4910 <pre>
   4911 This release includes new package functionality, and many bug fixes and changes.
   4912 It also improves support for the arm and nacl platforms.
   4913 
   4914 * 5l: avoid fixed buffers in list.
   4915 * 6l, 8l: clean up ELF code, fix NaCl.
   4916 * 6l/8l: emit DWARF frame info.
   4917 * Make.inc: make GOOS detection work on windows (thanks Alex Brainman).
   4918 * build: fixes for native arn build,
   4919         make all.bash run on Ubuntu ARM.
   4920 * cgo: bug fixes,
   4921         show preamble gcc errors (thanks Eric Clark).
   4922 * crypto/x509, crypto/tls: improve root matching and observe CA flag.
   4923 * crypto: Fix certificate validation.
   4924 * doc: variable-width layout.
   4925 * env.bash: fix building in directory with spaces in the path (thanks Alex Brainman).
   4926 * exp/4s, exp/nacl/av: sync to recent exp/draw changes.
   4927 * exp/draw/x11: mouse location is a signed integer.
   4928 * exp/nacl/av: update color to max out at 1&lt;&lt;16-1 instead of 1&lt;&lt;32-1.
   4929 * fmt: support '*' for width or precision (thanks Anthony Martin).
   4930 * gc: improvements to static initialization,
   4931         make sure path names are canonical.
   4932 * gob: make robust when decoding a struct with non-struct data.
   4933 * gobuilder: add -cmd for user-specified build command,
   4934         add -rev= flag to build specific revision and exit,
   4935         fix bug that caused old revisions to be rebuilt.
   4936 * godoc: change default filter file name to "",
   4937         don't use quadratic algorithm to filter paths,
   4938         show "Last update" info for directory listings.
   4939 * http: new redirect test,
   4940         URLEscape now escapes all reserved characters as per the RFC.
   4941 * nacl: fix zero-length writes.
   4942 * net/dict: parse response correctly (thanks Fazlul Shahriar).
   4943 * netchan: add a cross-connect test,
   4944         handle closing of channels,
   4945         provide a method (Importer.Errors()) to recover protocol errors.
   4946 * os: make Open() O_APPEND flag work on windows (thanks Alex Brainman),
   4947         make RemoveAll() work on windows (thanks Alex Brainman).
   4948 * pkg/Makefile: disable netchan test to fix windows build (thanks Alex Brainman).
   4949 * regexp: delete Iter methods.
   4950 * runtime: better panic for send to nil channel.
   4951 * strings: fix minor bug in LastIndexFunc (thanks Roger Peppe).
   4952 * suffixarray: a package for creating suffixarray-based indexes.
   4953 * syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.
   4954 * test: fix NaCl build.
   4955 * windows: fix netchan test by using 127.0.0.1.
   4956 </pre>
   4957 
   4958 <h2 id="2010-09-15">2010-09-15</h2>
   4959 
   4960 <pre>
   4961 This release includes a language change: the lower bound of a subslice may
   4962 now be omitted, in which case the value will default to 0.
   4963 For example, s[0:10] may now be written as s[:10], and s[0:] as s[:].
   4964 
   4965 The release also includes important bug fixes for the ARM architecture,
   4966 as well as the following fixes and changes:
   4967 
   4968 * 5g: register allocation bugs
   4969 * 6c, 8c: show line numbers in -S output
   4970 * 6g, 6l, 8g, 8l: move read-only data to text segment
   4971 * 6l, 8l: make etext accurate; introduce rodata, erodata.
   4972 * arm: fix build bugs.
   4973         make libcgo build during OS X cross-compile
   4974         remove reference to deleted file syntax/slice.go
   4975         use the correct stat syscalls
   4976         work around reg allocator bug in 5g
   4977 * bufio: add UnreadRune.
   4978 * build: avoid bad environment interactions
   4979         fix build for tiny
   4980         generate, clean .exe files on Windows (thanks Joe Poirier)
   4981         test for _WIN32, not _MINGW32 (thanks Joe Poirier)
   4982         work with GNU Make 3.82 (thanks Jukka-Pekka Kekkonen)
   4983 * cgo: add typedef for uintptr in generated headers
   4984         silence warning for C call returning const pointer
   4985 * codereview: convert email address to lower case before checking CONTRIBUTORS
   4986 * crypto/tls: don't return an error from Close()
   4987 * doc/tutorial: update for slice changes.
   4988 * exec: separate LookPath implementations for unix/windows (thanks Joe Poirier)
   4989 * exp/draw/x11: allow clean shutdown when the user closes the window.
   4990 * exp/draw: clip destination rectangle to the image bounds.
   4991         fast path for drawing overlapping image.RGBAs.
   4992         fix double-counting of pt.Min for the src and mask points.
   4993         reintroduce the MouseEvent.Nsec timestamp.
   4994         rename Context to Window, and add a Close method.
   4995 * exp/debug: preliminary support for 'copy' function (thanks Sebastien Binet)
   4996 * fmt.Fscan: use UnreadRune to preserve data across calls.
   4997 * gc: better printing of named constants, func literals in errors
   4998         many bug fixes
   4999         fix line number printing with //line directives
   5000         fix symbol table generation on windows (thanks Alex Brainman)
   5001         implement comparison rule from spec change 33abb649cb63
   5002         implement new slice spec (thanks Scott Lawrence)
   5003         make string x + y + z + ... + w efficient
   5004         more accurate line numbers for ATEXT
   5005         remove &amp;[10]int -&gt; []int conversion
   5006 * go-mode.el: fix highlighting for 'chan' type (thanks Scott Lawrence)
   5007 * godoc: better support for directory trees for user-supplied paths
   5008         use correct delay time (bug fix)
   5009 * gofmt, go/printer: update internal estimated position correctly
   5010 * goinstall: warn when package name starts with http:// (thanks Scott Lawrence)
   5011 * http: check https certificate against host name
   5012         do not cache CanonicalHeaderKey (thanks Jukka-Pekka Kekkonen)
   5013 * image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9).
   5014         introduce Intersect and Union rectangle methods.
   5015 * ld: handle quoted spaces in package path (thanks Dan Sinclair)
   5016 * libcgo: fix NaCl build.
   5017 * libmach: fix build on arm host
   5018         fix new thread race with Linux
   5019 * math: make portable Tan(Pi/2) return NaN
   5020 * misc/dashboard/builder: gobuilder, a continuous build client
   5021 * net: disable tests for functions not available on windows (thanks Alex Brainman)
   5022 * netchan: make -1 unlimited, as advertised.
   5023 * os, exec: rename argv0 to name
   5024 * path: add IsAbs (thanks Ivan Krasin)
   5025 * runtime: fix bug in tracebacks
   5026         fix crash trace on amd64
   5027         fix windows build (thanks Alex Brainman)
   5028         use manual stack for garbage collection
   5029 * spec: add examples for slices with omitted index expressions.
   5030         allow omission of low slice bound (thanks Scott Lawrence)
   5031 * syscall: fix windows Gettimeofday (thanks Alex Brainman)
   5032 * test(arm): disable zerodivide.go because compilation fails.
   5033 * test(windows): disable tests that cause the build to fail (thanks Joe Poirier)
   5034 * test/garbage/parser: sync with recent parser changes
   5035 * test: Add test for //line
   5036         Make gccgo believe that the variables can change.
   5037         Recognize gccgo error messages.
   5038         Reduce race conditions in chan/nonblock.go.
   5039         Run garbage collector before testing malloc numbers.
   5040 * websocket: Add support for secure WebSockets (thanks Jukka-Pekka Kekkonen)
   5041 * windows: disable unimplemented tests (thanks Joe Poirier)
   5042 </pre>
   5043 
   5044 <h2 id="2010-09-06">2010-09-06</h2>
   5045 
   5046 <pre>
   5047 This release includes the syntactic modernization of more than 100 files in /test,
   5048 and these additions, changes, and fixes: 
   5049 * 6l/8l: emit DWARF in macho.
   5050 * 8g: use FCHS, not FMUL, for minus float.
   5051 * 8l: emit DWARF in ELF,
   5052         suppress emitting DWARF in Windows PE (thanks Alex Brainman).
   5053 * big: added RatString, some simplifications.
   5054 * build: create bin and pkg directories as needed; drop from hg,
   5055         delete Make.386 Make.amd64 Make.arm (obsoleted by Make.inc),
   5056         fix cgo with -j2,
   5057         let pkg/Makefile coordinate building of Go commands,
   5058         never use quietgcc in Make.pkg,
   5059         remove more references to GOBIN and GOROOT (thanks Christian Himpel).
   5060 * codereview: Fix uploading for Mercurial 1.6.3 (thanks Evan Shaw),
   5061         consistent indent, cut dead code,
   5062         fix hang on standard hg commands,
   5063         print status when tasks take longer than 30 seconds,
   5064         really disable codereview when not available,
   5065         upload files in parallel (5x improvement on large CLs).
   5066 * crypto/hmac: make Sum idempotent (thanks Jukka-Pekka Kekkonen).
   5067 * doc: add links to more German docs,
   5068         add round-robin flag to io2010 balance example,
   5069         fix a bug in the example in Constants subsection (thanks James Fysh),
   5070         various changes for validating HTML (thanks Scott Lawrence).
   5071 * fmt: delete erroneous sentence about return value for Sprint*.
   5072 * gc: appease bison version running on FreeBSD builder,
   5073         fix spurious syntax error.
   5074 * go/doc: use correct escaper for URL.
   5075 * go/printer: align ImportPaths in ImportDecls (thanks Scott Lawrence).
   5076 * go/typechecker: 2nd step towards augmenting AST with full type information.
   5077 * gofmt: permit omission of first index in slice expression.
   5078 * goinstall: added -a flag to mean "all remote packages" (thanks Scott Lawrence),
   5079         assume go binaries are in path (following new convention),
   5080         use https for Google Code checkouts.
   5081 * gotest: allow make test of cgo packages (without make install).
   5082 * http: add Date to server, Last-Modified and If-Modified-Since to file server,
   5083         add PostForm function to post url-encoded key/value data,
   5084         obscure passwords in return value of URL.String (thanks Scott Lawrence).
   5085 * image: introduce Config type and DecodeConfig function.
   5086 * libcgo: update Makefile to use Make.inc.
   5087 * list: update comment to state that the zero value is ready to use.
   5088 * math: amd64 version of Sincos (thanks Charles L. Dorian).
   5089 * misc/bash: add *.go completion for gofmt (thanks Scott Lawrence).
   5090 * misc/emacs: make _ a word symbol (thanks Scott Lawrence).
   5091 * misc: add zsh completion (using compctl),
   5092         syntax highlighting for Fraise.app (OS X) (thanks Vincent Ambo).
   5093 * net/textproto: Handle multi-line responses (thanks Evan Shaw).
   5094 * net: add LookupMX (thanks Corey Thomasson).
   5095 * netchan: Fix race condition in test,
   5096         rather than 0, make -1 mean infinite (a la strings.Split et al),
   5097         use acknowledgements on export send.
   5098         new methods Sync and Drain for clean teardown.
   5099 * regexp: interpret all Go characer escapes \a \b \f \n \r \t \v.
   5100 * rpc: fix bug that caused private methods to attempt to be registered.
   5101 * runtime: Correct commonType.kind values to match compiler,
   5102         add GOOS, GOARCH; fix FuncLine,
   5103         special case copy, equal for one-word interface values (thanks Kyle Consalus).
   5104 * scanner: fix incorrect reporting of error in Next (thanks Kyle Consalus).
   5105 * spec: clarify that arrays must be addressable to be sliceable.
   5106 * template: fix space handling around actions.
   5107 * test/solitaire: an exercise in backtracking and string conversions.
   5108 * test: Recognize gccgo error messages and other fixes.
   5109 * time: do not crash in String on nil Time.
   5110 * tutorial: regenerate HTML to pick up change to progs/file.go.
   5111 * websocket: fix missing Sec-WebSocket-Protocol on server response (thanks Jukka-Pekka Kekkonen).
   5112 </pre>
   5113 
   5114 <h2 id="2010-08-25">2010-08-25</h2>
   5115 
   5116 <pre>
   5117 This release includes changes to the build system that will likely require you
   5118 to make changes to your environment variables and Makefiles.
   5119 
   5120 All environment variables are now optional:
   5121  - $GOOS and $GOARCH are now optional; their values should now be inferred 
   5122    automatically by the build system,
   5123  - $GOROOT is now optional, but if you choose not to set it you must run
   5124    'gomake' instead of 'make' or 'gmake' when developing Go programs
   5125    using the conventional Makefiles,
   5126  - $GOBIN remains optional and now defaults to $GOROOT/bin;
   5127    if you wish to use this new default, make sure it is in your $PATH
   5128    and that you have removed the existing binaries from $HOME/bin.
   5129 
   5130 As a result of these changes, the Go Makefiles have changed. If your Makefiles
   5131 inherit from the Go Makefiles, you must change this line:
   5132     include ../../Make.$(GOARCH)
   5133 to this:
   5134     include ../../Make.inc
   5135 
   5136 This release also removes the deprecated functions in regexp and the 
   5137 once package. Any code that still uses them will break.
   5138 See the notes from the last release for details:
   5139     http://golang.org/doc/devel/release.html#2010-08-11
   5140 
   5141 Other changes:
   5142 * 6g: better registerization for slices, strings, interface values
   5143 * 6l: line number information in DWARF format
   5144 * build: $GOBIN defaults to $GOROOT/bin,
   5145         no required environment variables
   5146 * cgo: add C.GoStringN (thanks Eric Clark).
   5147 * codereview: fix issues with leading tabs in CL descriptions,
   5148         do not send "Abandoned" mail if the CL has not been mailed.
   5149 * crypto/ocsp: add missing Makefile.
   5150 * crypto/tls: client certificate support (thanks Mikkel Krautz).
   5151 * doc: update gccgo information for recent changes.
   5152         fix errors in Effective Go.
   5153 * fmt/print: give %p priority, analogous to %T,
   5154         honor Formatter in Print, Println.
   5155 * gc: fix parenthesization check.
   5156 * go/ast: facility for printing AST nodes,
   5157         first step towards augmenting AST with full type information.
   5158 * go/printer: do not modify tabwriter.Escape'd text.
   5159 * gofmt: do not modify multi-line string literals,
   5160         print AST nodes by setting -ast flag.
   5161 * http: fix typo in http.Request documentation (thanks Scott Lawrence)
   5162         parse query string always, not just in GET
   5163 * image/png: support 16-bit color.
   5164 * io: ReadAtLeast now errors if min > len(buf).
   5165 * jsonrpc: use `error: null` for success, not `error: ""`.
   5166 * libmach: implement register fetch for 32-bit x86 kernel.
   5167 * net: make IPv6 String method standards-compliant (thanks Mikio Hara).
   5168 * os: FileInfo.Permission() now returns uint32 (thanks Scott Lawrence),
   5169         implement env using native Windows API (thanks Alex Brainman).
   5170 * reflect: allow PtrValue.PointTo(nil).
   5171 * runtime: correct line numbers for .goc files,
   5172         fix another stack split bug,
   5173         fix freebsd/386 mmap.
   5174 * syscall: regenerate syscall/z* files for linux/386, linux/amd64, linux/arm.
   5175 * tabwriter: Introduce a new flag StripEscape.
   5176 * template: fix handling of space around actions,
   5177         vars preceded by white space parse correctly (thanks Roger Peppe).
   5178 * test: add test case that crashes gccgo.
   5179 * time: parse no longer requires minutes for time zone (thanks Jan H. Hosang)
   5180 * yacc: fix bounds check in error recovery.
   5181 </pre>
   5182 
   5183 <h2 id="2010-08-11">2010-08-11</h2>
   5184 
   5185 <pre>
   5186 This release introduces some package changes. You may need to change your
   5187 code if you use the once, regexp, image, or exp/draw packages.
   5188 
   5189 The type Once has been added to the sync package. The new sync.Once will
   5190 supersede the functionality provided by the once package. We intend to remove
   5191 the once package after this release. See:
   5192     http://golang.org/pkg/sync/#Once
   5193 All instances of once in the standard library have been replaced with
   5194 sync.Once. Reviewing these changes may help you modify your existing code. 
   5195 The relevant changeset:
   5196     http://code.google.com/p/go/source/detail?r=fa2c43595119
   5197 
   5198 A new set of methods has been added to the regular expression package, regexp.
   5199 These provide a uniformly named approach to discovering the matches of an
   5200 expression within a piece of text; see the package documentation for details: 
   5201     http://golang.org/pkg/regexp/
   5202 These new methods will, in a later release, replace the old methods for
   5203 matching substrings.  The following methods are deprecated:
   5204     Execute (use FindSubmatchIndex)
   5205     ExecuteString (use FindStringSubmatchIndex)
   5206     MatchStrings(use FindStringSubmatch)
   5207     MatchSlices (use FindSubmatch)
   5208     AllMatches (use FindAll; note that n&lt;0 means 'all matches'; was n&lt;=0)
   5209     AllMatchesString (use FindAllString; note that n&lt;0 means 'all matches'; was n&lt;=0)
   5210 (Plus there are ten new methods you didn't know you wanted.) 
   5211 Please update your code to use the new routines before the next release.
   5212 
   5213 An image.Image now has a Bounds rectangle, where previously it ranged 
   5214 from (0, 0) to (Width, Height). Loops that previously looked like:
   5215     for y := 0; y &lt; img.Height(); y++ {
   5216         for x := 0; x &lt; img.Width(); x++ {
   5217             // Do something with img.At(x, y)
   5218         }
   5219     }
   5220 should instead be:
   5221     b := img.Bounds()
   5222     for y := b.Min.Y; y &lt; b.Max.Y; y++ {
   5223         for x := b.Min.X; x &lt; b.Max.X; x++ {
   5224             // Do something with img.At(x, y)
   5225         }
   5226     }
   5227 The Point and Rectangle types have also moved from exp/draw to image.
   5228 
   5229 Other changes:
   5230 * arm: bugfixes and syscall (thanks Kai Backman).
   5231 * asn1: fix incorrect encoding of signed integers (thanks Nicholas Waples).
   5232 * big: fixes to bitwise functions (thanks Evan Shaw).
   5233 * bytes: add IndexRune, FieldsFunc and To*Special (thanks Christian Himpel).
   5234 * encoding/binary: add complex (thanks Roger Peppe).
   5235 * exp/iterable: add UintArray (thanks Anschel Schaffer-Cohen).
   5236 * godoc: report Status 404 if a pkg or file is not found.
   5237 * gofmt: better reporting for unexpected semicolon errors.
   5238 * html: new package, an HTML tokenizer.
   5239 * image: change image representation from slice-of-slices to linear buffer,
   5240         introduce Decode and RegisterFormat,
   5241         introduce Transparent and Opaque,
   5242         replace Width and Height by Bounds, add the Point and Rect types.
   5243 * libbio: fix Bprint to address 6g issues with large data structures.
   5244 * math: fix amd64 Hypot (thanks Charles L. Dorian).
   5245 * net/textproto: new package, with example net/dict.
   5246 * os: fix ForkExec() handling of envv == nil (thanks Alex Brainman).
   5247 * png: grayscale support (thanks Mathieu Lonjaret).
   5248 * regexp: document that backslashes are the escape character.
   5249 * rpc: catch errors from ReadResponseBody.
   5250 * runtime: memory free fix (thanks Alex Brainman).
   5251 * template: add ParseFile method to template.Template.
   5252 * test/peano: use directly recursive type def.
   5253 </pre>
   5254 
   5255 <h2 id="2010-08-04">2010-08-04</h2>
   5256 
   5257 <pre>
   5258 This release includes a change to os.Open (and co.). The file permission
   5259 argument has been changed to a uint32. Your code may require changes - a simple
   5260 conversion operation at most.
   5261 
   5262 Other changes:
   5263 * amd64: use segment memory for thread-local storage.
   5264 * arm: add gdb support to android launcher script,
   5265         bugfixes (stack clobbering, indices),
   5266         disable another flaky test,
   5267         remove old qemu dependency from gotest.
   5268 * bufio: introduce Peek.
   5269 * bytes: added test case for explode with blank string (thanks Scott Lawrence).
   5270 * cgo: correct multiple return value function invocations (thanks Christian Himpel).
   5271 * crypto/x509: unwrap Subject Key Identifier (thanks Adam Langley).
   5272 * gc: index bounds tests and other fixes.
   5273 * gofmt/go/parser: strengthen syntax checks.
   5274 * goinstall: check for error from exec.*Cmd.Wait() (thanks Alex Brainman).
   5275 * image/png: use image-specific methods for checking opacity.
   5276 * image: introduce Gray and Gray16 types,
   5277         remove the named colors except for Black and White.
   5278 * json: object members must have a value (thanks Anthony Martin).
   5279 * misc/vim: highlight misspelled words only in comments (thanks Christian Himpel).
   5280 * os: Null device (thanks Peter Mundy).
   5281 * runtime: do not fall through in SIGBUS/SIGSEGV.
   5282 * strings: fix Split("", "", -1) (thanks Scott Lawrence).
   5283 * syscall: make go errors not clash with windows errors (thanks Alex Brainman).
   5284 * test/run: diff old new,
   5285 * websocket: correct challenge response (thanks Tarmigan Casebolt),
   5286         fix bug involving spaces in header keys (thanks Bill Neubauer). 
   5287 </pre>
   5288 
   5289 <h2 id="2010-07-29">2010-07-29</h2>
   5290 
   5291 <pre>
   5292 * 5g: more soft float support and several bugfixes.
   5293 * asn1: Enumerated, Flag and GeneralizedTime support.
   5294 * build: clean.bash to check that GOOS and GOARCH are set.
   5295 * bytes: add IndexFunc and LastIndexFunc (thanks Fazlul Shahriar),
   5296 	add Title.
   5297 * cgo: If CC is set in environment, use it rather than "gcc",
   5298 	use new command line syntax: -- separates cgo flags from gcc flags.
   5299 * codereview: avoid crash if no config,
   5300 	don't run gofmt with an empty file list,
   5301 	make 'hg submit' work with Mercurial 1.6.
   5302 * crypto/ocsp: add package to parse OCSP responses.
   5303 * crypto/tls: add client-side SNI support and PeerCertificates.
   5304 * exp/bignum: delete package - functionality subsumed by package big.
   5305 * fmt.Print: fix bug in placement of spaces introduced when ...T went in.
   5306 * fmt.Scanf: handle trailing spaces.
   5307 * gc: fix smaller-than-pointer-sized receivers in interfaces,
   5308 	floating point precision/normalization fixes,
   5309 	graceful exit on seg fault,
   5310 	import dot shadowing bug,
   5311 	many fixes including better handling of invalid input,
   5312 	print error detail about failure to open import.
   5313 * gccgo_install.html: add description of the port to RTEMS (thanks Vinu Rajashekhar).
   5314 * gobs: fix bug in singleton arrays.
   5315 * godoc: display synopses for all packages that have some kind of documentation..
   5316 * gofmt: fix some linebreak issues.
   5317 * http: add https client support (thanks Fazlul Shahriar),
   5318 	write body when content length unknown (thanks James Whitehead).
   5319 * io: MultiReader and MultiWriter (thanks Brad Fitzpatrick),
   5320 	fix another race condition in Pipes.
   5321 * ld: many fixes including better handling of invalid input.
   5322 * libmach: correct handling of .5 files with D_REGREG addresses.
   5323 * linux/386: use Xen-friendly ELF TLS instruction sequence.
   5324 * mime: add AddExtensionType (thanks Yuusei Kuwana).
   5325 * misc/vim: syntax file recognizes constants like 1e9 (thanks Petar Maymounkov).
   5326 * net: TCPConn.SetNoDelay, back by popular demand.
   5327 * net(windows): fix crashing Read/Write when passed empty slice on (thanks Alex Brainman),
   5328 	implement LookupHost/Port/SRV (thanks Wei Guangjing),
   5329 	properly handle EOF in (*netFD).Read() (thanks Alex Brainman).
   5330 * runtime: fix bug introduced in revision 4a01b8d28570 (thanks Alex Brainman),
   5331 	rename cgo2c, *.cgo to goc2c, *.goc (thanks Peter Mundy).
   5332 * scanner: better comment.
   5333 * strings: add Title.
   5334 * syscall: add ForkExec, Syscall12 on Windows (thanks Daniel Theophanes),
   5335 	improve windows errno handling (thanks Alex Brainman).
   5336 * syscall(windows): fix FormatMessage (thanks Peter Mundy),
   5337 	implement Pipe() (thanks Wei Guangjing).
   5338 * time: fix parsing of minutes in time zones.
   5339 * utf16(windows): fix cyclic dependency when testing (thanks Peter Mundy).
   5340 </pre>
   5341 
   5342 <h2 id="2010-07-14">2010-07-14</h2>
   5343 
   5344 <pre>
   5345 This release includes a package change. In container/vector, the Iter method
   5346 has been removed from the Vector, IntVector, and StringVector types. Also, the
   5347 Data method has been renamed to Copy to better express its actual behavior.
   5348 Now that Vector is just a slice, any for loops ranging over v.Iter() or
   5349 v.Data() can be changed to range over v instead.
   5350 
   5351 Other changes:
   5352 * big: Improvements to Rat.SetString (thanks Evan Shaw),
   5353         add sign, abs, Rat.IsInt.
   5354 * cgo: various bug fixes.
   5355 * codereview: Fix for Mercurial >= 1.6 (thanks Evan Shaw).
   5356 * crypto/rand: add Windows implementation (thanks Peter Mundy).
   5357 * crypto/tls: make HTTPS servers easier,
   5358         add client OCSP stapling support.
   5359 * exp/eval: converted from bignum to big (thanks Evan Shaw).
   5360 * gc: implement new len spec, range bug fix, optimization.
   5361 * go/parser: require that '...' parameters are followed by a type.
   5362 * http: fix ParseURL to handle //relative_path properly.
   5363 * io: fix SectionReader Seek to seek backwards (thanks Peter Mundy).
   5364 * json: Add HTMLEscape (thanks Micah Stetson).
   5365 * ld: bug fixes.
   5366 * math: amd64 version of log (thanks Charles L. Dorian).
   5367 * mime/multipart: new package to parse multipart MIME messages
   5368         and HTTP multipart/form-data support.
   5369 * os: use TempFile with default TempDir for test files (thanks Peter Mundy).
   5370 * runtime/tiny: add docs for additional VMs, fix build (thanks Markus Duft).
   5371 * runtime: better error for send/recv on nil channel.
   5372 * spec: clarification of channel close(),
   5373         lock down some details about channels and select,
   5374         restrict when len(x) is constant,
   5375         specify len/cap for nil slices, maps, and channels.
   5376 * windows: append .exe to binary names (thanks Joe Poirier).
   5377 </pre>
   5378 
   5379 <h2 id="2010-07-01">2010-07-01</h2>
   5380 
   5381 <pre>
   5382 This release includes some package changes that may require changes to 
   5383 client code.
   5384 
   5385 The Split function in the bytes and strings packages has been changed.
   5386 The count argument, which limits the size of the return, previously treated
   5387 zero as unbounded. It now treats 0 as 0, and will return an empty slice.  
   5388 To request unbounded results, use -1 (or some other negative value).
   5389 The new Replace functions in bytes and strings share this behavior.
   5390 This may require you change your existing code.
   5391 
   5392 The gob package now allows the transmission of non-struct values at the
   5393 top-level. As a result, the rpc and netchan packages have fewer restrictions
   5394 on the types they can handle.  For example, netchan can now share a chan int.
   5395 
   5396 The release also includes a Code Walk: "Share Memory By Communicating".
   5397 It describes an idiomatic Go program that uses goroutines and channels:
   5398 	http://golang.org/doc/codewalk/sharemem/
   5399 
   5400 There is now a Projects page on the Go Dashboard that lists Go programs, 
   5401 tools, and libraries:
   5402 	http://godashboard.appspot.com/project
   5403 
   5404 Other changes:
   5405 * 6a, 6l: bug fixes.
   5406 * bytes, strings: add Replace.
   5407 * cgo: use slash-free relative paths for .so references.
   5408 * cmath: correct IsNaN for argument cmplx(Inf, NaN) (thanks Charles L. Dorian).
   5409 * codereview: allow multiple email addresses in CONTRIBUTORS.
   5410 * doc/codewalk: add Share Memory By Communicating.
   5411 * exp/draw/x11: implement the mapping from keycodes to keysyms.
   5412 * fmt: Printf: fix bug in handling of %#v, allow other verbs for slices
   5413         Scan: fix handling of EOFs.
   5414 * gc: bug fixes and optimizations.
   5415 * gob: add DecodeValue and EncodeValue,
   5416         add support for complex numbers.
   5417 * goinstall: support for Bazaar+Launchpad (thanks Gustavo Niemeyer).
   5418 * io/ioutil: add TempFile for Windows (thanks Peter Mundy).
   5419 * ld: add -u flag to check safe bits; discard old -u, -x flags.
   5420 * math: amd64 versions of Exp and Fabs (thanks Charles L. Dorian).
   5421 * misc/vim: always override filetype detection for .go files.
   5422 * net: add support for DNS SRV requests (thanks Kirklin McDonald),
   5423         initial attempt to implement Windows version (thanks Alex Brainman).
   5424 * netchan: allow chan of basic types now that gob can handle such,
   5425         eliminate the need for a pointer value in Import and Export.
   5426 * os/signal: only catch all signals if os/signal package imported.
   5427 * regexp: bug fix: need to track whether match begins with fixed prefix.
   5428 * rpc: allow non-struct args and reply (they must still be pointers).
   5429 * runtime: bug fixes and reorganization.
   5430 * strconv: fix bugs in floating-point and base 2 conversions
   5431 * syscall: add syscall_bsd.go to zsycall_freebsd_386.go (thanks Peter Mundy),
   5432         add socketpair (thanks Ivan Krasin).
   5433 * time: implement time zones for Windows (thanks Alex Brainman).
   5434 * x509: support non-self-signed certs. 
   5435 </pre>
   5436 
   5437 <h2 id="2010-06-21">2010-06-21</h2>
   5438 
   5439 <pre>
   5440 This release includes a language change. The "..." function parameter form is
   5441 gone; "...T" remains. Typically, "...interface{}" can be used instead of "...".
   5442 
   5443 The implementation of Printf has changed in a way that subtly affects its
   5444 handling of the fmt.Stringer interface. You may need to make changes to your
   5445 code. For details, see:
   5446         https://groups.google.com/group/golang-nuts/msg/6fffba90a3e3dc06
   5447 
   5448 The reflect package has been changed. If you have code that uses reflect, 
   5449 it will need to be updated. For details, see:
   5450         https://groups.google.com/group/golang-nuts/msg/7a93d07c590e7beb
   5451 
   5452 Other changes:
   5453 * 8l: correct test for sp == top of stack in 8l -K code.
   5454 * asn1: allow '*' in PrintableString.
   5455 * bytes.Buffer.ReadFrom: fix bug.
   5456 * codereview: avoid exception in match (thanks Paolo Giarrusso).
   5457 * complex divide: match C99 implementation.
   5458 * exp/draw: small draw.drawGlyphOver optimization.
   5459 * fmt: Print*: reimplement to switch on type first,
   5460         Scanf: improve error message when input does not match format.
   5461 * gc: better error messages for interface failures, conversions, undefined symbols.
   5462 * go/scanner: report illegal escape sequences.
   5463 * gob: substitute slice for map.
   5464 * goinstall: process dependencies for package main (thanks Roger Peppe).
   5465 * gopack: add S flag to force marking a package as safe,
   5466         simplify go metadata code.
   5467 * html: sync testdata/webkit to match WebKit tip.
   5468 * http: reply to Expect 100-continue requests automatically (thanks Brad Fitzpatrick).
   5469 * image: add an Alpha16 type.
   5470 * ld: pad Go symbol table out to page boundary (fixes cgo crash).
   5471 * misc/vim: reorganize plugin to be easier to use (thanks James Whitehead).
   5472 * path: add Base, analogous to Unix basename.
   5473 * pkg/Makefile: allow DISABLE_NET_TESTS=1 to disable network tests.
   5474 * reflect: add Kind, Type.Bits, remove Int8Type, Int8Value, etc.
   5475 * runtime: additional Windows support (thanks Alex Brainman),
   5476         correct fault for 16-bit divide on Leopard,
   5477         fix 386 signal handler bug.
   5478 * strconv: add AtofN, FtoaN.
   5479 * string: add IndexFunc and LastIndexFunc (thanks Roger Peppe).
   5480 * syslog: use local network for tests. 
   5481 </pre>
   5482 
   5483 <h2 id="2010-06-09">2010-06-09</h2>
   5484 
   5485 <pre>
   5486 This release contains many fixes and improvements, including several
   5487 clarifications and consolidations to the Language Specification.
   5488 
   5489 The type checking rules around assignments and conversions are simpler but more
   5490 restrictive: assignments no longer convert implicitly from *[10]int to []int
   5491 (write x[0:] instead of &amp;x), and conversions can no longer change the names of
   5492 types inside composite types.
   5493 
   5494 The fmt package now includes flexible type-driven (fmt.Scan) and 
   5495 format-driven (fmt.Scanf) scanners for all basic types.
   5496 
   5497 * big: bug fix for Quo aliasing problem.
   5498 * bufio: change ReadSlice to match description.
   5499 * cgo: bug fixes.
   5500 * doc: add Google I/O talk and programs,
   5501         codereview + Mercurial Queues info (thanks Peter Williams).
   5502 * exp/draw: Draw fast paths for the Over operator,
   5503         add Rectangle.Eq and Point.In, fix Rectangle.Clip (thanks Roger Peppe).
   5504 * fmt: Scan fixes and improvements.
   5505 * gc: backslash newline is not a legal escape sequence in strings,
   5506         better error message when ~ operator is found,
   5507         fix export of complex types,
   5508         new typechecking rules.
   5509 * go/parser: correct position of empty statement ';'.
   5510 * gofmt: fix test script.
   5511 * goinstall: use 'git pull' instead of 'git checkout' (thanks Michael Hoisie).
   5512 * http: add Head function for making HTTP HEAD requests,
   5513         handle status 304 correctly.
   5514 * image: add Opaque method to the image types.
   5515         make Color.RGBA return 16 bit color instead of 32 bit color.
   5516 * io/ioutil: add TempFile.
   5517 * math: Pow special cases and additional tests (thanks Charles L. Dorian).
   5518 * netchan: improve closing and shutdown.
   5519 * os: implement os.FileInfo.*time_ns for windows (thanks Alex Brainman).
   5520 * os/signal: correct the regexp for finding Unix signal names (thanks Vinu Rajashekhar).
   5521 * regexp: optimizations (thanks Kyle Consalus).
   5522 * runtime: fix printing -Inf (thanks Evan Shaw),
   5523         finish pchw -&gt; tiny, added gettime for tiny (thanks Daniel Theophanes).
   5524 * spec: clean-ups and consolidation.
   5525 * syscall: additional Windows compatibility fixes (thanks Alex Brainman).
   5526 * test/bench: added regex-dna-parallel.go (thanks Kyle Consalus).
   5527 * vector: type-specific Do functions now take f(type) (thanks Michael Hoisie). 
   5528 </pre>
   5529 
   5530 <h2 id="2010-05-27">2010-05-27</h2>
   5531 
   5532 <pre>
   5533 A sizeable release, including standard library improvements and a slew of
   5534 compiler bug fixes. The three-week interval was largely caused by the team
   5535 preparing for Google I/O. 
   5536 
   5537 * big: add Rat type (thanks Evan Shaw),
   5538         new features, much performance tuning, cleanups, and more tests.
   5539 * bignum: deprecate by moving into exp directory.
   5540 * build: allow MAKEFLAGS to be set outside the build scripts (thanks Christopher Wedgwood).
   5541 * bytes: add Trim, TrimLeft, TrimRight, and generic functions (thanks Michael Hoisie).
   5542 * cgo: fix to permit cgo callbacks from init code.
   5543 * cmath: update range of Phase and Polar due to signed zero (thanks Charles L. Dorian).
   5544 * codereview: work better with mq (thanks Peter Williams).
   5545 * compress: renamings
   5546 	NewDeflater -&gt; NewWriter
   5547 	NewInflater -&gt; NewReader
   5548 	Deflater -&gt; Compressor
   5549 	Inflater -&gt; Decompressor
   5550 * exp/draw/x11: respect $XAUTHORITY,
   5551         treat $DISPLAY the same way x-go-bindings does.
   5552 * exp/draw: fast path for glyph images, other optimizations,
   5553         fix Rectangle.Canon (thanks Roger Peppe).
   5554 * fmt: Scan, Scanln: Start of a simple scanning API in the fmt package,
   5555         fix Printf crash when given an extra nil argument (thanks Roger Peppe).
   5556 * gc: better error when computing remainder of non-int (thanks Evan Shaw),
   5557         disallow middot in Go programs,
   5558         distinguish array, slice literal in error messages,
   5559         fix shift/reduce conflict in go.y export syntax,
   5560         fix unsafe.Sizeof on ideal constants,
   5561         handle use of builtin function outside function call,
   5562         many other bug fixes.
   5563 * gob: add support for maps,
   5564         add test for indirect maps, slices, arrays.
   5565 * godoc: collect package comments from all package files.
   5566 * gofmt: don't lose mandatory semicolons,
   5567         exclude test w/ illegal syntax from test cases,
   5568         fix printing of labels.
   5569 * http: prevent crash if remote server is not responding with "HTTP/".
   5570 * json: accept escaped slash in string scanner (thanks Michael Hoisie),
   5571         fix array -&gt; non-array decoding.
   5572 * libmach: skip __nl_symbol_ptr section on OS X.
   5573 * math: amd64 versions of Fdim, Fmax, Fmin,
   5574         signed zero Sqrt special case (thanks Charles L. Dorian).
   5575 * misc/kate: convert isn't a built in function (thanks Evan Shaw).
   5576 * net: implement BindToDevice,
   5577         implement raw sockets (thanks Christopher Wedgwood).
   5578 * netFD: fix race between Close and Read/Write (thanks Michael Hoisie).
   5579 * os: add Chtimes function (thanks Brad Fitzpatrick).
   5580 * pkg/Makefile: add netchan to standard package list.
   5581 * runtime: GOMAXPROCS returns previous value,
   5582         allow large map values,
   5583         avoid allocation for fixed strings,
   5584         correct tracebacks for nascent goroutines, even closures,
   5585         free old hashmap pieces during resizing.
   5586 * spec: added imaginary literal to semicolon rules (was missing),
   5587         fix and clarify syntax of conversions,
   5588         simplify section on channel types,
   5589         other minor tweaks.
   5590 * strconv: Btoui64 optimizations (thanks Kyle Consalus).
   5591 * strings: use copy instead of for loop in Map (thanks Kyle Consalus).
   5592 * syscall: implement BindToDevice (thanks Christopher Wedgwood),
   5593         add Utimes on Darwin/FreeBSD, add Futimes everywhere,
   5594         regenerate syscalls for some platforms.
   5595 * template: regularize name lookups of interfaces, pointers, and methods.
   5596 </pre>
   5597 
   5598 <h2 id="2010-05-04">2010-05-04</h2>
   5599 
   5600 <pre>
   5601 In this release we renamed the Windows OS target from 'mingw' to 'windows'.
   5602 If you are currently building for 'mingw' you should set GOOS=windows instead.
   5603 
   5604 * 5l, 6l, 8l, runtime: make -s binaries work.
   5605 * 5l, 6l, 8l: change ELF header so that strip doesn't destroy binary.
   5606 * 8l: fix absolute path detection on Windows.
   5607 * big: new functions, optimizations, and cleanups,
   5608 	add bitwise methods for Int (thanks Evan Shaw).
   5609 * bytes: Change IndexAny to look for UTF-8 encoded characters.
   5610 * darwin: bsdthread_create can fail; print good error.
   5611 * fmt: %T missing print &lt;nil&gt; for nil (thanks Christopher Wedgwood).
   5612 * gc: many fixes.
   5613 * misc/cgo/gmp: fix bug in SetString.
   5614 * net: fix resolv.conf EOF without newline bug (thanks Christopher Wedgwood).
   5615 * spec: some small clarifications (no language changes).
   5616 * syscall: add EWOULDBLOCK to sycall_nacl.go,
   5617 	force O_LARGEFILE in Linux open system call,
   5618 	handle EOF on pipe - special case on Windows (thanks Alex Brainman),
   5619 	mingw Sleep (thanks Joe Poirier).
   5620 * test/bench: import new fasta C reference, update Go, optimizations.
   5621 * test: test of static initialization (fails).
   5622 * vector: use correct capacity in call to make.
   5623 * xml: allow text segments to end at EOF.
   5624 </pre>
   5625 
   5626 <h2 id="2010-04-27">2010-04-27</h2>
   5627 
   5628 <pre>
   5629 This release includes a new Codelab that illustrates the construction of a
   5630 simple wiki web application: 
   5631 	http://golang.org/doc/codelab/wiki/
   5632 
   5633 It also includes a Codewalk framework for documenting code. See:
   5634 	http://golang.org/doc/codewalk/
   5635 
   5636 Other changes:
   5637 * 6g: fix need for parens around array index expression.
   5638 * 6l, 8l: include ELF header in PT_LOAD mapping for text segment.
   5639 * arm: add android runner script,
   5640 	support for printing floats.
   5641 * big: implemented Karatsuba multiplication,
   5642 	many fixes and improvements (thanks Evan Shaw).
   5643 * bytes: add Next method to Buffer, simplify Read,
   5644 	shuffle implementation, making WriteByte 50% faster.
   5645 * crypto/tls: simpler implementation of record layer.
   5646 * exp/eval: fixes (thanks Evan Shaw).
   5647 * flag: eliminate unnecessary structs.
   5648 * gc: better windows support,
   5649 	cmplx typecheck bug fix,
   5650 	more specific error for statements at top level.
   5651 * go/parser: don't require unnecessary parens.
   5652 * godoc: exclude duplicate entries (thanks Andrei Vieru),
   5653 	use int64 for timestamps (thanks Christopher Wedgwood).
   5654 * gofmt: fine-tune stripping of parentheses,
   5655 * json: Marshal, Unmarshal using new scanner,
   5656 	preserve field name case by default,
   5657 	scanner, Compact, Indent, and tests,
   5658 	support for streaming.
   5659 * libmach: disassemble MOVLQZX correctly.
   5660 * math: more special cases for signed zero (thanks Charles L. Dorian).
   5661 * net: add Pipe,
   5662 	fix bugs in packStructValue (thanks Michael Hoisie),
   5663 	introduce net.Error interface.
   5664 * os: FileInfo: regularize the types of some fields,
   5665 	create sys_bsd.go (thanks Giles Lean),
   5666 	mingw bug fixes (thanks Alex Brainman).
   5667 * reflect: add FieldByNameFunc (thanks Raif S. Naffah),
   5668 	implement Set(nil), SetValue(nil) for PtrValue and MapValue.
   5669 * regexp: allow escaping of any punctuation.
   5670 * rpc/jsonrpc: support for jsonrpc wire encoding.
   5671 * rpc: abstract client and server encodings,
   5672 	add Close() method to rpc.Client.
   5673 * runtime: closures, defer bug fix for Native Client,
   5674 	rename cgo2c, *.cgo to goc2c, *.goc to avoid confusion with real cgo.
   5675 	several other fixes.
   5676 * scanner: implement Peek() to look at the next char w/o advancing.
   5677 * strings: add ReadRune to Reader, add FieldsFunc (thanks Kyle Consalus).
   5678 * syscall: match linux Setsid function signature to darwin,
   5679 	mingw bug fixes (thanks Alex Brainman).
   5680 * template: fix handling of pointer inside interface.
   5681 * test/bench: add fannkuch-parallel.go (thanks Kyle Consalus),
   5682 	pidigits ~10% performance win by using adds instead of shifts.
   5683 * time: remove incorrect time.ISO8601 and add time.RFC3339 (thanks Micah Stetson).
   5684 * utf16: add DecodeRune, EncodeRune.
   5685 * xml: add support for XML marshaling embedded structs (thanks Raif S. Naffah),
   5686 	new "innerxml" tag to collect inner XML.
   5687 </pre>
   5688 
   5689 <h2 id="2010-04-13">2010-04-13</h2>
   5690 
   5691 <pre>
   5692 This release contains many changes:
   5693 
   5694 * 8l: add DOS stub to PE binaries (thanks Evan Shaw).
   5695 * cgo: add //export.
   5696 * cmath: new complex math library (thanks Charles L. Dorian).
   5697 * docs: update to match current coding style (thanks Christopher Wedgwood).
   5698 * exp/eval: fix example and add target to Makefile (thanks Evan Shaw).
   5699 * fmt: change behavior of format verb %b to match %x when negative (thanks Andrei Vieru).
   5700 * gc: compile s == "" as len(s) == 0,
   5701 	distinguish fatal compiler bug from error+exit,
   5702 	fix alignment on non-amd64,
   5703 	good syntax error for defer func() {} - missing fina (),
   5704 	implement panic and recover,
   5705 	zero unnamed return values on entry if func has defer.
   5706 * goyacc: change to be reentrant (thanks Roger Peppe).
   5707 * io/ioutil: fix bug in ReadFile when Open succeeds but Stat fails.
   5708 * kate: update for recent language changes (thanks Evan Shaw).
   5709 * libcgo: initial mingw port work - builds but untested (thanks Joe Poirier).
   5710 * math: new functions and special cases (thanks Charles L. Dorian) 
   5711 * net: use chan bool instead of chan *netFD to avoid cycle.
   5712 * netchan: allow client to send as well as receive.
   5713 * nntp: new package, NNTP client (thanks Conrad Meyer).
   5714 * os: rename os.Dir to os.FileInfo.
   5715 * rpc: don't log normal EOF,
   5716 	fix ServeConn to block as documented.
   5717 * runtime: many bug fixes, better ARM support.
   5718 * strings: add IndexRune, Trim, TrimLeft, TrimRight, etc (thanks Michael Hoisie).
   5719 * syscall: implement some mingw syscalls required by os (thanks Alex Brainman).
   5720 * test/bench: add k-nucleotide-parallel (thanks Kyle Consalus).
   5721 * Unicode: add support for Turkish case mapping.
   5722 * xgb: move from the main repository to http://code.google.com/p/x-go-binding/
   5723 </pre>
   5724 
   5725 <h2 id="2010-03-30">2010-03-30</h2>
   5726 
   5727 <pre>
   5728 This release contains three language changes:
   5729 
   5730 1. Accessing a non-existent key in a map is no longer a run-time error.  
   5731 It now evaluates to the zero value for that type.  For example:
   5732         x := myMap[i]   is now equivalent to:   x, _ := myMap[i]
   5733 
   5734 2. It is now legal to take the address of a function's return value.  
   5735 The return values are copied back to the caller only after deferred
   5736 functions have run.
   5737 
   5738 3. The functions panic and recover, intended for reporting and recovering from
   5739 failure, have been added to the spec:
   5740 	http://golang.org/doc/go_spec.html#Handling_panics 
   5741 In a related change, panicln is gone, and panic is now a single-argument
   5742 function.  Panic and recover are recognized by the gc compilers but the new
   5743 behavior is not yet implemented.
   5744 
   5745 The ARM build is broken in this release; ARM users should stay at release.2010-03-22.
   5746 
   5747 Other changes:
   5748 * bytes, strings: add IndexAny.
   5749 * cc/ld: Add support for #pragma dynexport,
   5750         Rename dynld to dynimport throughout. Cgo users will need to rerun cgo.
   5751 * expvar: default publishings for cmdline, memstats
   5752 * flag: add user-defined flag types.
   5753 * gc: usual bug fixes
   5754 * go/ast: generalized ast filtering.
   5755 * go/printer: avoid reflect in print.
   5756 * godefs: fix handling of negative constants.
   5757 * godoc: export pprof debug information, exported variables,
   5758         support for filtering of command-line output in -src mode,
   5759         use http GET for remote search instead of rpc.
   5760 * gofmt: don't convert multi-line functions into one-liners,
   5761         preserve newlines in multiline selector expressions (thanks Risto Jaakko Saarelma).
   5762 * goinstall: include command name in error reporting (thanks Andrey Mirtchovski)
   5763 * http: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))
   5764 * make: use actual dependency for install
   5765 * math: add J1, Y1, Jn, Yn, J0, Y0 (Bessel functions) (thanks Charles L. Dorian)
   5766 * prof: add pprof from google-perftools
   5767 * regexp: don't return non-nil *Regexp if there is an error.
   5768 * runtime: add Callers,
   5769         add malloc sampling, pprof interface,
   5770         add memory profiling, more statistics to runtime.MemStats,
   5771         implement missing destroylock() (thanks Alex Brainman),
   5772         more malloc statistics,
   5773         run all finalizers in a single goroutine,
   5774         Goexit runs deferred calls.
   5775 * strconv: add Atob and Btoa,
   5776         Unquote could wrongly return a nil error on error (thanks Roger Peppe).
   5777 * syscall: add IPV6 constants,
   5778         add syscall_bsd.go for Darwin and other *BSDs (thanks Giles Lean),
   5779         implement SetsockoptString (thanks Christopher Wedgwood).
   5780 * websocket: implement new protocol (thanks Fumitoshi Ukai).
   5781 * xgb: fix request length and request size (thanks Firmansyah Adiputra).
   5782 * xml: add CopyToken (thanks Kyle Consalus),
   5783         add line numbers to syntax errors (thanks Kyle Consalus),
   5784         use io.ReadByter in place of local readByter (thanks Raif S. Naffah). 
   5785 </pre>
   5786 
   5787 <h2 id="2010-03-22">2010-03-22</h2>
   5788 
   5789 <pre>
   5790 With this release we announce the launch of the Go Blog:
   5791 	http://blog.golang.org/
   5792 The first post is a brief update covering what has happened since the launch.
   5793 
   5794 This release contains some new packages and functionality, and many fixes:
   5795 * 6g/8g: fix issues with complex data types, other bug fixes.
   5796 * Makefiles: refactored to make writing external Makefiles easier.
   5797 * crypto/rand: new package.
   5798 * godoc: implemented command-line search via RPC,
   5799 	improved comment formatting: recognize URLs.
   5800 * gofmt: more consistent formatting of const/var decls.
   5801 * http: add Error helper function,
   5802 	add ParseQuery (thanks Petar Maymounkov),
   5803 	change RawPath to mean raw path, not raw everything-after-scheme.
   5804 * image/jpeg: fix typos.
   5805 * json: add MarshalIndent (accepts user-specified indent string).
   5806 * math: add Gamma function (thanks Charles L. Dorian).
   5807 * misc/bbedit: support for cmplx, real, imag (thanks Anthony Starks).
   5808 * misc/vim: add new complex types, functions and literals.
   5809 * net: fix IPMask.String not to crash on all-0xff mask.
   5810 * os: drop File finalizer after normal Close.
   5811 * runtime: add GOROOT and Version,
   5812 	lock finalizer table accesses.
   5813 * sha512: add sha384 (truncated version) (thanks Conrad Meyer).
   5814 * syscall: add const ARCH, analogous to OS.
   5815 * syscall: further additions to mingw port (thanks Alex Brainman).
   5816 * template: fixed html formatter []byte input bug.
   5817 * utf16: new package.
   5818 * version.bash: cope with ancient Mercurial.
   5819 * websocket: use URL.RawPath to construct WebSocket-Location: header.
   5820 </pre>
   5821 
   5822 <h2 id="2010-03-15">2010-03-15</h2>
   5823 
   5824 <pre>
   5825 This release includes a language change: support for complex numbers.
   5826 	http://golang.org/doc/go_spec.html#Imaginary_literals
   5827 	http://golang.org/doc/go_spec.html#Complex_numbers
   5828 There is no library support as yet.
   5829 
   5830 This release also includes the goinstall command-line tool. 
   5831 	http://golang.org/cmd/goinstall/
   5832 	http://groups.google.com/group/golang-nuts/t/f091704771128e32
   5833 
   5834 * 5g/6g/8g: fix double function call in slice.
   5835 * arm: cleanup build warnings. (thanks Dean Prichard)
   5836 * big: fix mistakes with probablyPrime.
   5837 * bufio: add WriteRune.
   5838 * bytes: add ReadRune and WriteRune to bytes.Buffer.
   5839 * cc: stack split bug fix.
   5840 * crypto: add SHA-224 to sha256, add sha512 package. (thanks Conrad Meyer)
   5841 * crypto/ripemd160: new package. (thanks Raif S. Naffah)
   5842 * crypto/rsa: don't use safe primes.
   5843 * gc: avoid fixed length buffer cleanbuf. (thanks Dean Prichard)
   5844 	better compilation of floating point +=
   5845 	fix crash on complicated arg to make slice.
   5846 	remove duplicate errors, give better error for I.(T)
   5847 * godoc: support for multiple packages in a directory, other fixes.
   5848 * gofmt: bug fixes.
   5849 * hash: add Sum64 interface.
   5850 * hash/crc32: add Update function.
   5851 * hash/crc64: new package implementing 64-bit CRC.
   5852 * math: add ilogb, logb, remainder. (thanks Charles L. Dorian) 
   5853 * regexp: add ReplaceAllFunc, ReplaceAllStringFunc.
   5854 * runtime: clock garbage collection on bytes allocated, not pages in use.
   5855 * strings: make Split(s, "", n) faster. (thanks Spring Mc)
   5856 * syscall: minimal mingw version of syscall. (thanks Alex Brainman)
   5857 * template: add ParseFile, MustParseFile.
   5858 </pre>
   5859 
   5860 <h2 id="2010-03-04">2010-03-04</h2>
   5861 
   5862 <pre>
   5863 There is one language change: the ability to convert a string to []byte or 
   5864 []int.  This deprecates the strings.Bytes and strings.Runes functions.
   5865 You can convert your existing sources using these gofmt commands:
   5866 	gofmt -r 'strings.Bytes(x) -&gt; []byte(x)' -w file-or-directory-list
   5867 	gofmt -r 'strings.Runes(x) -&gt; []int(x)' -w file-or-directory-list
   5868 After running these you might need to delete unused imports of the "strings" 
   5869 package.
   5870 
   5871 Other changes and fixes:
   5872 * 6l/8l/5l: add -r option
   5873 * 8g: make a[byte(x)] truncate x
   5874 * codereview.py: fix for compatibility with hg >=1.4.3
   5875 * crypto/blowfish: new package (thanks Raif S. Naffah)
   5876 * dashboard: more performance tuning
   5877 * fmt: use String method in %q to get the value to quote.
   5878 * gofmt: several cosmetic changes
   5879 * http: fix handling of Connection: close, bug in http.Post
   5880 * net: correct DNS configuration,
   5881 	fix network timeout boundary condition,
   5882 	put [ ] around IPv6 addresses for Dial.
   5883 * path: add Match,
   5884 	fix bug in Match with non-greedy stars (thanks Kevin Ballard)
   5885 * strings: delete Bytes, Runes (see above)
   5886 * tests: an Eratosthenesque concurrent prime sieve (thanks Anh Hai Trinh) 
   5887 </pre>
   5888 
   5889 <h2 id="2010-02-23">2010-02-23</h2>
   5890 
   5891 <pre>
   5892 This release is mainly bug fixes and a little new code.
   5893 There are no language changes.
   5894 
   5895 6g/5g/8g: bug fixes
   5896 8a/8l: Added FCMOVcc instructions (thanks Evan Shaw and Charles Dorian)
   5897 crypto/x509: support certificate creation
   5898 dashboard: caching to avoid datastore queries
   5899 exec: add dir argument to Run
   5900 godoc: bug fixes and code cleanups
   5901 http: continued implementation and bug fixes (thanks Petar Maymounkov)
   5902 json: fix quoted strings in Marshal (thanks Sergei Skorobogatov)
   5903 math: more functions, test cases, and benchmarks (thanks Charles L. Dorian)
   5904 misc/bbedit: treat predeclared identifiers as "keywords" (thanks Anthony Starks)
   5905 net: disable UDP server test (flaky on various architectures)
   5906 runtime: work around Linux kernel bug in futex,
   5907 	pchw is now tiny
   5908 sync: fix to work on armv5 (thanks Dean Prichard)
   5909 websocket: fix binary frame size decoding (thanks Timo Savola)
   5910 xml: allow unquoted attribute values in non-Strict mode (thanks Amrut Joshi)
   5911 	treat bool as value in Unmarshal (thanks Michael Hoisie) 
   5912 </pre>
   5913 
   5914 <h2 id="2010-02-17">2010-02-17</h2>
   5915 
   5916 <pre>
   5917 There are two small language changes:
   5918 * NUL bytes may be rejected in souce files, and the tools do reject them.
   5919 * Conversions from string to []int and []byte are defined but not yet implemented.
   5920 
   5921 Other changes and fixes:
   5922 * 5a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D options (thanks Dean Prichard)
   5923 * 5c/6c/8c/5l/6l/8l: add -V flag to display version number
   5924 * 5c/6c/8c: use "cpp" not "/bin/cpp" for external preprocessor (thanks Giles Lean)
   5925 * 8a/8l: Added CMOVcc instructions (thanks Evan Shaw)
   5926 * 8l: pe executable building code changed to include import table for kernel32.dll functions (thanks Alex Brainman)
   5927 * 5g/6g/8g: bug fixes
   5928 * asn1: bug fixes and additions (incl marshaling)
   5929 * build: fix build for Native Client, Linux/ARM
   5930 * dashboard: show benchmarks, add garbage collector benchmarks
   5931 * encoding/pem: add marshaling support
   5932 * exp/draw: fast paths for a nil mask
   5933 * godoc: support for directories outside $GOROOT
   5934 * http: sort header keys when writing Response or Request to wire (thanks Petar Maymounkov)
   5935 * math: special cases and new functions (thanks Charles Dorian)
   5936 * mime: new package, used in http (thanks Michael Hoisie)
   5937 * net: dns bug fix - use random request id
   5938 * os: finalize File, to close fd.
   5939 * path: make Join variadic (thanks Stephen Weinberg)
   5940 * regexp: optimization bug fix
   5941 * runtime: misc fixes and optimizations
   5942 * syscall: make signature of Umask on OS X, FreeBSD match Linux. (thanks Giles Lean)
   5943 </pre>
   5944 
   5945 <h2 id="2010-02-04">2010-02-04</h2>
   5946 
   5947 <pre>
   5948 There is one language change: support for ...T parameters:
   5949 	http://golang.org/doc/go_spec.html#Function_types
   5950 
   5951 You can now check build status on various platforms at the Go Dashboard: 
   5952 	http://godashboard.appspot.com
   5953 
   5954 * 5l/6l/8l: several minor fixes
   5955 * 5a/6a/8a/5l/6l/8l: avoid overflow of symb buffer (thanks Dean Prichard)
   5956 * compress/gzip: gzip deflater (i.e., writer)
   5957 * debug/proc: add mingw specific build stubs (thanks Joe Poirier)
   5958 * exp/draw: separate the source-point and mask-point in Draw
   5959 * fmt: handle nils safely in Printf
   5960 * gccgo: error messages now match those of gc
   5961 * godoc: several fixes
   5962 * http: bug fixes, revision of Request/Response (thanks Petar Maymounkov)
   5963 * image: new image.A type to represent anti-aliased font glyphs
   5964 	add named colors (e.g. image.Blue), suitable for exp/draw
   5965 * io: fixed bugs in Pipe
   5966 * malloc: merge into package runtime
   5967 * math: fix tests on FreeBSD (thanks Devon H. O'Dell)
   5968 	add functions; update tests and special cases (thanks Charles L. Dorian)
   5969 * os/signal: send SIGCHLDs to Incoming (thanks Chris Wedgwood)
   5970 * reflect: add StringHeader to reflect
   5971 * runtime: add SetFinalizer
   5972 * time: Sleep through interruptions (thanks Chris Wedgwood)
   5973 	add RFC822 formats
   5974 	experimental implementation of Ticker using two goroutines for all tickers
   5975 * xml: allow underscores in XML element names (thanks Michael Hoisie)
   5976 	allow any scalar type in xml.Unmarshal
   5977 </pre>
   5978 
   5979 <h2 id="2010-01-27">2010-01-27</h2>
   5980 
   5981 <pre>
   5982 There are two small language changes: the meaning of chan &lt;- chan int
   5983 is now defined, and functions returning functions do not need to 
   5984 parenthesize the result type.
   5985 
   5986 There is one significant implementation change: the compilers can
   5987 handle multiple packages using the same name in a single binary.
   5988 In the gc compilers, this comes at the cost of ensuring that you
   5989 always import a particular package using a consistent import path.
   5990 In the gccgo compiler, the cost is that you must use the -fgo-prefix
   5991 flag to pass a unique prefix (like the eventual import path).
   5992 
   5993 5a/6a/8a: avoid use of fixed-size buffers (thanks Dean Prichard)
   5994 5g, 6g, 8g: many minor bug fixes
   5995 bufio: give Writer.WriteString same signature as bytes.Buffer.WriteString.
   5996 container/list: PushFrontList, PushBackList (thanks Jan Hosang)
   5997 godoc: trim spaces from search query (thanks Christopher Wedgwood)
   5998 hash: document that Sum does not change state, fix crypto hashes
   5999 http: bug fixes, revision of Request/Response (thanks Petar Maymounkov)
   6000 math: more handling of IEEE 754 special cases (thanks Charles Dorian)
   6001 misc/dashboard: new build dashboard
   6002 net: allow UDP broadcast,
   6003 	use /etc/hosts to resolve names (thanks Yves Junqueira, Michael Hoisie)
   6004 netchan: beginnings of new package for connecting channels across a network
   6005 os: allow FQDN in Hostname test (thanks Icarus Sparry)
   6006 reflect: garbage collection bug in Call
   6007 runtime: demo of Go on raw (emulated) hw in runtime/pchw,
   6008 	performance fix on OS X
   6009 spec: clarify meaning of chan &lt;- chan int,
   6010 	func() func() int is allowed now,
   6011 	define ... T (not yet implemented)
   6012 template: can use interface values
   6013 time: fix for +0000 time zone,
   6014 	more robust tick.Stop.
   6015 xgb: support for authenticated connections (thanks Firmansyah Adiputra)
   6016 xml: add Escape (thanks Stephen Weinberg)
   6017 </pre>
   6018 
   6019 <h2 id="2010-01-13">2010-01-13</h2>
   6020 
   6021 <pre>
   6022 This release is mainly bug fixes with a little new code.
   6023 There are no language changes.
   6024 
   6025 build: $GOBIN should no longer be required in $PATH (thanks Devon H. O'Dell),
   6026 	new package target "make bench" to run benchmarks
   6027 8g: faster float -&gt; uint64 conversion (thanks Evan Shaw)
   6028 5g, 6g, 8g:
   6029 	clean opnames.h to avoid stale errors (thanks Yongjian Xu),
   6030 	a handful of small compiler fixes
   6031 5g, 6g, 8g, 5l, 6l, 8l: ignore $GOARCH, which is implied by name of tool
   6032 6prof: support for writing input files for google-perftools's pprof
   6033 asn1: fix a few structure-handling bugs
   6034 cgo: many bug fixes (thanks Devon H. O'Dell)
   6035 codereview: repeated "hg mail" sends "please take another look"
   6036 gob: reserve ids for future expansion
   6037 godoc: distinguish HTML generation from plain text HTML escaping (thanks Roger Peppe)
   6038 gofmt: minor bug fixes, removed -oldprinter flag
   6039 http: add CanonicalPath (thanks Ivan Krasin),
   6040 	avoid header duplication in Response.Write,
   6041 	correctly escape/unescape URL sections
   6042 io: new interface ReadByter
   6043 json: better error, pointer handling in Marshal (thanks Ivan Krasin)
   6044 libmach: disassembly of FUCOMI, etc (thanks Evan Shaw)
   6045 math: special cases for most functions and 386 hardware Sqrt (thanks Charles Dorian)
   6046 misc/dashboard: beginning of a build dashboard at godashboard.appspot.com.
   6047 misc/emacs: handling of new semicolon rules (thanks Austin Clements),
   6048 	empty buffer bug fix (thanks Kevin Ballard)
   6049 misc/kate: highlighting improvements (tahnks Evan Shaw)
   6050 os/signal: add signal names: signal.SIGHUP, etc (thanks David Symonds)
   6051 runtime: preliminary Windows support (thanks Hector Chu),
   6052 	preemption polling to reduce garbage collector pauses
   6053 scanner: new lightweight scanner package
   6054 template: bug fix involving spaces before a delimited block
   6055 test/bench: updated timings
   6056 time: new Format, Parse functions
   6057 </pre>
   6058 
   6059 <h2 id="2010-01-05">2010-01-05</h2>
   6060 
   6061 <pre>
   6062 This release is mainly bug fixes.  There are no language changes.
   6063 
   6064 6prof: now works on 386
   6065 8a, 8l: add FCOMI, FCOMIP, FUCOMI, and FUCOMIP (thanks Evan Shaw)
   6066 big: fix ProbablyPrime on small numbers
   6067 container/vector: faster []-based implementation (thanks Jan Mercl)
   6068 crypto/tls: extensions and Next Protocol Negotiation
   6069 gob: one encoding bug fix, one decoding bug fix
   6070 image/jpeg: support for RST markers
   6071 image/png: support for transparent paletted images
   6072 misc/xcode: improved support (thanks Ken Friedenbach)
   6073 net: return nil Conn on error from Dial (thanks Roger Peppe)
   6074 regexp: add Regexp.NumSubexp (thanks Peter Froehlich)
   6075 syscall: add Nanosleep on FreeBSD (thanks Devon H. O'Dell)
   6076 template: can use map in .repeated section
   6077 
   6078 There is now a public road map, in the repository and online
   6079 at <a href="http://golang.org/doc/devel/roadmap.html">http://golang.org/doc/devel/roadmap.html</a>.
   6080 </pre>
   6081 
   6082 <h2 id="2009-12-22">2009-12-22</h2>
   6083 
   6084 <pre>
   6085 Since the last release there has been one large syntactic change to
   6086 the language, already discussed extensively on this list: semicolons
   6087 are now implied between statement-ending tokens and newline characters.
   6088 See http://groups.google.com/group/golang-nuts/t/5ee32b588d10f2e9 for
   6089 details.
   6090 
   6091 By default, gofmt now parses and prints the new lighter weight syntax.
   6092 To convert programs written in the old syntax, you can use:
   6093 
   6094 	gofmt -oldparser -w *.go
   6095 
   6096 Since everything was being reformatted anyway, we took the opportunity to
   6097 change the way gofmt does alignment.  Now gofmt uses tabs at the start
   6098 of a line for basic code alignment, but it uses spaces for alignment of
   6099 interior columns.  Thus, in an editor with a fixed-width font, you can
   6100 choose your own tab size to change the indentation, and no matter what
   6101 tab size you choose, columns will be aligned properly.
   6102 
   6103 
   6104 In addition to the syntax and formatting changes, there have been many
   6105 smaller fixes and updates:
   6106 
   6107 6g,8g,5g: many bug fixes, better registerization,
   6108    build process fix involving mkbuiltin (thanks Yongjian Xu),
   6109    method expressions for concrete types
   6110 8l: support for Windows PE files (thanks Hector Chu)
   6111 bytes: more efficient Buffer handling
   6112 bytes, strings: new function Fields (thanks Andrey Mirtchovski)
   6113 cgo: handling of enums (thanks Moriyoshi Koizumi),
   6114     handling of structs with bit fields, multiple files (thanks Devon H. O'Dell),
   6115     installation of .so to non-standard locations
   6116 crypto/sha256: new package for SHA 256 (thanks Andy Davis)
   6117 encoding/binary: support for slices of fixed-size values (thanks Maxim Ushakov)
   6118 exp/vector: experimental alternate vector representation (thanks Jan Mercl)
   6119 fmt: %p for chan, map, slice types
   6120 gob: a couple more bug fixes
   6121 http: support for basic authentication (thanks Ivan Krasin)
   6122 image/jpeg: basic JPEG decoder
   6123 math: correct handling of Inf and NaN in Pow (thanks Charles Dorian)
   6124 misc/bash: completion file for bash (thanks Alex Ray)
   6125 os/signal: support for handling Unix signals (thanks David Symonds)
   6126 rand: Zipf-distributed random values (thanks William Josephson)
   6127 syscall: correct error return bug on 32-bit machines (thanks Christopher Wedgwood)
   6128 syslog: new package for writing to Unix syslog daemon (thanks Yves Junqueira)
   6129 template: will automatically invoke niladic methods
   6130 time: new ISO8601 format generator (thanks Ben Olive)
   6131 xgb: converted generator to new syntax (thanks Tor Andersson)
   6132 xml: better mapping of tag names to Go identifiers (thanks Kei Son),
   6133     better handling of unexpected EOF (thanks Arvindh Rajesh Tamilmani)
   6134 </pre>
   6135 
   6136 <h2 id="2009-12-09">2009-12-09</h2>
   6137 
   6138 <pre>
   6139 Since the last release there are two changes to the language: 
   6140 
   6141 * new builtin copy(dst, src) copies n = min(len(dst), len(src)) 
   6142   elements to dst from src and returns n.  It works correctly 
   6143   even if dst and src overlap.  bytes.Copy is gone. 
   6144   Convert your programs using: 
   6145       gofmt -w -r 'bytes.Copy(d, s) -&gt; copy(d, s)' *.go 
   6146 
   6147 * new syntax x[lo:] is shorthand for x[lo:len(x)]. 
   6148   Convert your programs using: 
   6149       gofmt -w -r 'a[b:len(a)] -&gt; a[b:]' *.go 
   6150 
   6151 In addition, there have been many smaller fixes and updates: 
   6152 
   6153 * 6g/8g/5g: many bug fixes 
   6154 * 8g: fix 386 floating point stack bug (thanks Charles Dorian) 
   6155 * all.bash: now works even when $GOROOT has spaces (thanks Sergio Luis O. B. Correia), 
   6156     starting to make build work with mingw (thanks Hector Chu), 
   6157     FreeBSD support (thanks Devon O'Dell) 
   6158 * big: much faster on 386. 
   6159 * bytes: new function IndexByte, implemented in assembly 
   6160     new function Runes (thanks Peter Froehlich), 
   6161     performance tuning in bytes.Buffer. 
   6162 * codereview: various bugs fixed 
   6163 * container/vector: New is gone; just declare a Vector instead. 
   6164     call Resize to set len and cap. 
   6165 * cgo: many bug fixes (thanks Eden Li) 
   6166 * crypto: added MD4 (thanks Chris Lennert), 
   6167     added XTEA (thanks Adrian O'Grady). 
   6168 * crypto/tls: basic client 
   6169 * exp/iterable: new functions (thanks Michael Elkins) 
   6170 * exp/nacl: native client tree builds again 
   6171 * fmt: preliminary performance tuning 
   6172 * go/ast: more powerful Visitor (thanks Roger Peppe) 
   6173 * gob: a few bug fixes 
   6174 * gofmt: better handling of standard input, error reporting (thanks Fazlul Shahriar) 
   6175     new -r flag for rewriting programs 
   6176 * gotest: support for Benchmark functions (thanks Trevor Strohman) 
   6177 * io: ReadFile, WriteFile, ReadDir now in separate package io/ioutil. 
   6178 * json: new Marshal function (thanks Michael Hoisie), 
   6179     better white space handling (thanks Andrew Skiba), 
   6180     decoding into native data structures (thanks Sergey Gromov), 
   6181     handling of nil interface values (thanks Ross Light). 
   6182 * math: correct handling of sin/cos of large angles 
   6183 * net: better handling of Close (thanks Devon O'Dell and Christopher Wedgwood) 
   6184     support for UDP broadcast (thanks Jonathan Wills), 
   6185     support for empty packets 
   6186 * rand: top-level functions now safe to call from multiple goroutines 
   6187 (thanks Roger Peppe). 
   6188 * regexp: a few easy optimizations 
   6189 * rpc: better error handling, a few bug fixes 
   6190 * runtime: better signal handling on OS X, malloc fixes, 
   6191     global channel lock is gone. 
   6192 * sync: RWMutex now allows concurrent readers (thanks Pter Szab) 
   6193 * template: can use maps as data (thanks James Meneghello) 
   6194 * unicode: updated to Unicode 5.2. 
   6195 * websocket: new package (thanks Fumitoshi Ukai) 
   6196 * xgb: preliminary X Go Bindings (thanks Tor Andersson) 
   6197 * xml: fixed crash (thanks Vish Subramanian) 
   6198 * misc: bbedit config (thanks Anthony Starks), 
   6199     kate config (thanks Evan Shaw) 
   6200 </pre>
   6201