## golang/go — weekly.2012-02-14…weekly.2012-02-22

_235+ commits._

### Features
- **encoding/xml: add example and docs for anon fields** (6c20f5c)
- **net: add a bit clarified multicast listener tests** (adbadf4)
- **pprof: add Profile type** (ebae73b)
- **gc: new, less strict bool rules** (e29d3df)
- **cmd/go: add tool -n flag** (d1e1367)
- **ld: add NOPTRBSS for large, pointer-free uninitialized data** (5bcad92)
- **godoc: support flat directory view again** (89fd4dd)
- **doc: support redirect-on-share** (1a1940c)
- **codereview: add submit message support for newer clone URL and subrepos** (d86213c)
- **cmd/*: add -d option to bison.** (3053778)
- **net/http: add optional Server.TLSConfig field** (dc19b94)
- **cmd/6c: add line feed after an error message** (b400004)
- **go 1: add a description of the os error changes.** (c3ef198)
- **time: add zoneinfo files, mainly for non-Unix systems** (9a59aec)
- **lib/time: add README, update.bash script** (228d941)
- **bytes: document Compare/Equal semantics for nil arguments, and add tests.** (85f2d18)
- **image: add Decode example.** (130b29b)
- **crypto/dsa: add missing period in package comment** (3063ff5)

### Fixes
- **5a: fix same arm bug** (123130f)
- **5c, 5g, 5l: fix arm bug** (a5bc16d)
- **cmd/dist: fix install cmd/5g on non-arm system** (37decab)
- **cgo: fix definition of opaque types** (024df9f)
- **godoc: fix potential index out-of-bounds error** (d74680e)
- **cmd/fix: remove os.Wait gofix.** (6d35302)
- **runtime: fix FreeBSD signal handling around thread creation** (b089106)
- **misc/dist/windows: fix broken icon, other misc** (fe5b4a2)
- **godoc: fix absolute->relative mapping** (7b22e46)
- **godoc: fix playground url** (9a26a78)
- **text/tabwriter: fix documentation by adding an example.** (5f2ecbf)
- **cmd/dist: fix pprof permissions** (d364269)
- **net: add diagnostic to try to catch selfConnect bug earlier** (2155a04)
- **doc: fix links in installation instructions** (01156f0)
- **go/doc: update golden file to fix build** (9c9b96f)
- **godoc: fix tag mismatch validation errors** (05e80cf)
- **os,time: fix Plan 9 build** (441538e)
- **5a, 5c, 5g, 5l: fix build for Linux/ARM.** (463009f)
- **cmd/fix: add runtime renamings** (3c831f6)
- **doc/install.html: fix link** (fa9c44d)
- **cmd/cgo: bug fixes** (1a0c8fe)
- **6l, 8l: fix build for ELF systems** (cf52e39)
- **runtime: fix another memory leak** (8a4c2b3)
- **runtime: fix tiny memory leak** (89b075c)
- **gc: fix error for floating-point constant %** (83feedf)
- **encoding/gob: fix mutually recursive slices of structs** (793f6f3)
- **doc: fix tables** (5c3de8c)
- **os: fix existential typo** (566e0fe)
- **cmd/gc: fix comparison of struct with _ field** (c4c92eb)

### Backend
- **weekly.2012-02-22** (6419bbb)
- **net/http: some more cookie tests** (a5b5964)
- **runtime: goroutine profile, stack dumps** (e4b02bf)
- **encoding/xml: move Unmarshal example to function** (133c6bf)
- **time: run full TestTicker test even during short tests** (fea7f07)
- **net: make raw IP tests robust** (ee71afb)
- **net: make parseProcNetIGMP more robust** (9765325)
- **os: make the system info a value not a pointer on unix** (880cda5)
- **builder: reuse existing workspace if possible** (bb4a490)
- **net: delete debugging print** (213997a)
- **builder: update for os.Wait changes.** (0427c58)
- **go/printer, gofmt: improved comma placement** (8b7cdb7)
- **godoc: proper index range checking when extracting example code** (775f005)
- **go/doc: move firstSentence into go/doc** (0c2f3b7)
- **net: replace error variable name oserr with err** (215777b)
- **ld: get symbol table letters right** (c2cd0d0)
- **gc: never crash during a debugging print** (6c7daca)
- **spec: refine the wording about variables in type switches** (818e3cd)
- **ld: only set SNOPTRBSS during load** (433e47d)
- **doc: move styles to style.css** (8d29a09)
- **gc: return of ideal bool** (a457fa5)
- **spec: make all comparison results untyped bool** (9c08d65)
- **runtime: use SYSCALL instead of INT 0x80 in FreeBSD's runtime.osyield on amd64** (8542dc0)
- **godoc: adjust line height in pre blocks** (43cfbb0)
- **net/http: update test to use time.Duration better** (9c8923f)
- **net/textproto: accept bad MIME headers as browsers do** (31e9429)
- **misc/goplay: remove redundant chdir** (5ba08f4)
- **net/smtp: use EHLO then HELO** (2110fad)
- **runtime: avoid malloc during malloc** (fc7ed45)
- **cmd/go: pass 2, remove reference to incomplete -file flag** (e5013e8)
- **cmd/go: 'go help test' remove documentation for incomplete -file flag** (7507f3f)
- **exp/norm: Added Iter type for iterating on segment boundaries.  This type is mainly to be used** (ecd24f3)
- **cmd/api: record return type of functions for variable typecheck.** (d75023e)
- **dashboard: rename buttons to satisfy pedantic souls** (92755f3)
- **net: extend the workaround to DialTCP to try to get arm building again.** (152d806)
- **cmd/gc: don't believe that variables mentioned 256 times are unused.** (f2ad374)
- **net: more selfConnect debugging: panic if ra == nil in internetSocket** (c9bb042)
- **net: panic if sockaddrToTCP returns nil incorrectly** (3970d2f)
- **os: replace non-portable Waitmsg with portable ProcessState** (ccacab6)
- **runtime: remove an obsolete file** (22c41ff)
- **doc: link to self-hosted articles from docs.html** (10689cd)
- **misc/goplay: remain in work directory, build in temp directory** (041edbc)
- **net: more docs on deadlines** (8729d15)
- **runtime: implement runtime.osyield on FreeBSD 386, amd64** (dff5535)
- **net: move hosts testdata to testdata folder** (6e4ddc6)
- **doc/go1: delete obsolete reference to FileStat** (6ba77ec)
- **5g, 6g, 8g: flush modified globals aggressively** (8998835)
- **misc/dist/windows: app engine gopher replaced with standard bw version** (2557466)
- **misc/dist/windows: ongoing dev** (8d7ee2b)
- **os: drop the Wait function and the options to Process.Wait** (b5a3bd5)
- **misc/dist/windows: ongoing dev** (a9e57f7)
- **database/sql/driver: API cleanups** (943f6cc)
- **html/template: don't indirect past a Stringer** (0ce6c87)
- **strconv: run garbage collection before counting allocations in test** (a533176)
- **all: rewrite references to old tool names** (d6f8c75)
- **FAQ: many small fixes and adjustments** (5cff190)
- **html/template: minor tweak to docs to improve HTML typography.** (bcb7a85)
- **doc/go1: update for runtime, unsafe API changes** (72f5a91)
- **syscall: force Windows to always use US English error messages** (b17a233)
- **doc: update contrib.html** (d5b28ad)
- **test/initsyscall.go: delete** (f03a579)
- **test/initcomma.go: restore what it's supposed to be testing** (c9b36a8)
- **test/hashmap.go: delete** (f5ff5b4)
- **doc: Fixed type in documentation for FormatFloat.** (72fb81e)
- **gc, ld: tag data as no-pointers and allocate in separate section** (4e3f8e9)
- **lib/time/zoneinfo: delete** (f741087)
- **time: switch to using (uncompressed) zoneinfo zip file** (cb5e181)
- **test/chan: document tests** (3fb5f32)
- **test/interface: document tests** (13514d4)
- **encoding/json: disable anonymous fields** (990f9f4)
- **os: remove Getenverror** (efacb2a)
- **runtime: API** (03f2289)
- **gc: drop ideal bool** (126d475)
- **time: use Go distribution zoneinfo if system copy not found** (ad17a9c)
- **net: make LocalAddr on multicast return group address** (e91bf2e)
- **cmd/api: s/ideal-bool/bool/** (95b0fe1)
- **all: shorten some of the longer tests** (0e70f27)
- **test/run: honor $TMPDIR** (6154f14)
- **templates: minor edits to the documentation** (68b35b0)
- **doc: update gccgo_contribute.html** (253c139)
- **os: document the type of link errors** (a5f21c9)
- **doc: various updates to doc/code.html** (f18b0b0)
- **html/template: replace obsolete reference to template.Set** (701fb58)
- **encoding/gob: cache engine for user type, not base type** (420f713)
- **pkg: a slew of examples** (3e804f9)
- **math/rand: Intn etc. should panic if their argument is <= 0.** (7d1c532)
- **go/doc: move Example code from go/ast to go/doc.** (b6e2d6b)
- **runtime: remove use of ?:** (ce020ff)
- **godoc: don't print spurious suggestion when running "go doc foo"** (6cdf0a1)
- **go/parser: example for ParseFile use** (f7ce57b)
- **go/scanner: replace comment with example** (ac6357b)

### Tests
- **test: use testlib in a few more cases.** (fc3797a)
- **test: fix bug423.go to actually fail with older releases.** (9666a95)
- **test: fix broken test** (b888671)
- **test: rewrite test/run shell script + errchk (perl) in Go** (ce837b3)
- **test: explanatory comments [c-g]*** (83976e3)
- **test: [a-c]: add introductory comments to tests** (fc0dc04)
- **test: use testlib (another bunch).** (2ece2f5)
- **test: change bug040 to use errorcheck** (292bd04)
- **test: remove a couple of bad tests that duplicate declbad.go** (f228ed1)
- **test: add some tests that gccgo failed to handle correctly** (7737e19)

### Chore
- **build: remove old version*.go files from hgignore** (f274551)
- **build: implement clean.bat** (7a4d744)

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