## golang/go — weekly.2012-03-13…weekly.2012-03-22

_120 commits._

### Features
- **sort: add time complexity to doc** (08959de)
- **doc: add JSON and Go article** (289a357)
- **flag: add examples** (07e887f)
- **html/template: add Templates and *Escape functions** (49be7f7)
- **syscall: add a test for passing an fd over a unix socket** (c97cf05)
- **cmd/go: don't add detail to errPrintedOutput** (cf0cbfd)
- **cmd/go: add -fno-common by default on Darwin** (9b70c70)
- **cmd/cgo: add support for function export for gccgo.** (3211b2c)
- **doc: add Gobs of data article** (9e03dcb)
- **doc: add missing quotation mark** (ed77d6f)
- **cmd/godoc: add toys, tour button to playground** (d528f52)
- **doc: add "Godoc: documenting Go code" article** (235863c)
- **doc: add reference to FAQ to explain warning about concrete type** (f008725)
- **doc: add Go Concurrency Patterns: Timing out, moving on article** (5659826)
- **doc: add Go image/draw package article and convert code snippets to Go1.** (fef92cb)

### Fixes
- **doc/godoc.js: fix error on IE8.** (782feeb)
- **cmd/gc: fix comment typo, assignment spacing** (209b2e5)
- **doc: fix typo in The Laws of Reflection article** (2b3d6cb)
- **exp/norm/normalize.go: fix typo** (f5f8036)
- **cmd/cgo: fix handling of errno for gccgo** (3a3c5aa)
- **html/template: fix typo and make grammar consistent in comments.** (4a59be0)
- **sort: fix computation of maxDepth to avoid infinite loop** (c5488d4)
- **run.bat: disable test in test\bench\go1 to fix build** (8521811)
- **net: drop unnecessary type assertions and fix leak in test** (7905faa)
- **gc: fix struct and array comparisons for new bool rules** (e1f22bd)
- **make.bat: Fix for old files** (8009542)
- **runtime: fix arm build** (bd6404a)
- **5l, 6l, 8l: fix stack split logic for stacks near default segment size** (9e5db8c)
- **cmd/go: fix directory->import path conversion** (95a8bab)
- **io/ioutil: fix crash when Stat fails** (70e58a2)
- **cmd/go: trivial help message fix for go help get** (1ddc9fe)
- **html/template: fix nil pointer bug** (214a1ca)
- **godoc: fix vet warnings for untagged struct literals** (adcb508)
- **html/template: fix panic on Clone** (5f32c8b)
- **go/printer, gofmt: fix multi-line logic** (b5021f3)
- **text/template: fix a couple of parse bugs around identifiers.** (8170d81)
- **go/build: fix match** (5361712)

### Backend
- **misc/dist: make godoc shortcut work** (da7959d)
- **weekly.2012-03-22** (145c48c)
- **misc/dist: updates to installer script** (e9fef33)
- **doc/articles/c_go_cgo.html: correct "C" comment to mention #cgo** (5ac1869)
- **doc/articles: rename concurrency patterns article** (a99e9c5)
- **cmd/gc: when expanding append inline, preserve arguments** (47b6197)
- **doc/articles/gobs_of_data.html: delete extra word** (2795a15)
- **doc/articles/go_command.html: nits** (cec6756)
- **doc/effective_go.html: undo local font change** (b8b308d)
- **go/build: clarify why we exclude files starting with '_' or '.'** (7186e56)
- **godoc: use shorter titles for tabs** (cfd8b84)
- **doc/effective_go: minor corrections** (0532f4d)
- **doc: remove reference to deleted os.ENOSPC** (e5102b3)
- **cmd/go: use .o, not .{5,6,8}, for gccgo created object files** (c5b45aa)
- **doc: general update of gccgo_install** (a84e3ba)
- **sort: document two undocumented functions** (65dc7dc)
- **misc/cgo/gmp: update for Go 1** (1abd8d8)
- **runtime: remove unused goc2c.c** (4b1933d)
- **doc/debugging_with_gdb: format & content update** (9dbfda5)
- **api: update go1.txt after adding functions to html/template** (351213c)
- **cmd/godoc: inform users that the playground doesn't work via local godoc** (abdb4db)
- **doc: remove defunct playground.html** (58aac1d)
- **doc: replace mentions of 6g with gc or the go command** (2a5879d)
- **misc/dashboard: remove remnants of package dashboard** (c58163c)
- **crypto/tls: always send a Certificate message if one was requested.** (aa1d417)
- **doc: update format for "C? Go? Cgo!" article** (d05b386)
- **path/filepath: implement Match and Glob on windows** (2ef4a84)
- **doc: move sub-repos lower on reference page** (6230569)
- **sysycall: remove creds_linux_test.go** (1f6fc94)
- **syscall: delete passfd_test.go** (4161dfc)
- **doc: various typos, remove apostrophes from ordinals** (7e05426)
- **syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux.** (6a05440)
- **spec: delete references to unsafe.Reflect,Typeof,Unreflect** (883a96d)
- **doc/install: remove reference to "Go Tutorial"** (1dd78b7)
- **doc/go_faq: minor update** (c3eaef7)
- **godoc: use FormatText for formating code in html template.** (2b3fd37)
- **cmd/pack: also recognize '\\' as path separator in filenames** (367557c)
- **godoc: apply gofmt** (cb4ed89)
- **make.bat: don't show error message if old generated files do not exist** (4aaf03a)
- **cmd/go: work around occasional ETXTBSY running cgo** (a4b2c5e)
- **reflect: panic if MakeSlice is given bad len/cap arguments.** (11cc5a2)
- **doc: use time.Duration in Effective Go.** (e5cc09a)
- **A+C: Christopher Redden (individual CLA)** (e57a616)
- **runtime: do not handle signals before configuring handler** (2e4a035)
- **cmd/gofmt: show ascii in usage.** (7694da1)
- **misc/dist: don't ship cmd/cov or cmd/prof** (86c7bc6)
- **cmd/go: quiet some logging** (c898c51)
- **cmd/go: make build errors more visible** (7a84fb3)
- **misc/dashboard: remove old python package dashboard** (e9f82e6)
- **reflect: document PkgPath, Method, StructField** (2ed7087)
- **os: do not assume syscall.Write will write everything** (b7b3652)
- **go/build: do not report Target for local imports** (20760e4)
- **lib/godoc: removing leading / from search links** (b4e0aea)
- **net/http: couple more triv.go modernizations** (a4e6197)
- **doc/play: use []rune insetead of []int.** (aec01c3)
- **os: return some invented data from Stat(DevNull) on windows** (4b872d6)
- **net/http: ensure triv.go compiles and runs** (1c224ab)
- **cmd/godoc: use *goroot as base path in zip file** (181dc14)
- **archive/zip: move r.zip off disk, into reader_test.go** (c959ebe)
- **godoc: style example headings like links** (9d08068)
- **go/build: clearer argument name for Import (src -> srcDir)** (036731c)
- **runtime: manage stack by ourselves for badcallback on windows/amd64** (b2a9079)
- **os: IsNotExist() should also consider ERROR_PATH_NOT_FOUND on Windows** (24ed667)
- **misc/dist: don't lose mode bits when setting tar permissions** (d6ea81e)
- **misc/dist: remove exp and old before building** (5c8e88d)
- **misc/vim: restore fileencodings.** (2fc5dd6)
- **misc/dist: force modes to 0755 or 0644 in tarballs** (b3ca3e9)
- **runtime/cgo: linux signal masking** (9eeb909)
- **runtime/cgo: darwin signal masking** (1fc9a17)
- **cmd/godoc: s/ignore/appengine/ in appinit.go +build constraint** (ace7d26)
- **all: various typos** (d724631)
- **text/template: variables do not take arguments** (d6ad6f0)
- **fmt: remove dead code** (62bb39e)
- **gc: use quoted string format in import error** (cc99d8a)
- **make.bat: properly handle directories with spaces** (f26b1f8)
- **os: remove document duplication in error predicate functions** (4ca59a0)
- **tag weekly.2012-03-13** (e24d99d)

### Tests
- **test: fix run.bash by spelling out the commands to use for bug424.go** (d12f1ff)
- **test: use testlib in a few more cases** (e266283)

### Chore
- **build: lengthen timeout for the lengthy runtime test** (2ceb653)
- **build: unset GOPATH before tests** (23322ab)
- **build: do more during windows build** (7fbef93)
- **build: catch API changes during build** (f69132d)

_Recap by [Repo Wrapped](https://repowrapped.com/gh/golang/go?utm_source=github-action)._