mirror of
https://github.com/golang/go
synced 2024-11-18 19:04:40 -07:00
The Go programming language
5cbf2abd36
&x.f, &x[0], x[i:j], &*x all must panic if x==nil. The first three are already addressed by the semantics of FieldAddr, IndexAddr, Slice; updated docs to reflect this. The final case requires generation of an additional dynamic check. See golang.org/s/go12nil for details. Tested on $GOROOT/test/nilptr2.go (with patch from CL 13108043) Also: remove a TODO where a no-op will do. R=gri, crawshaw CC=golang-dev, rsc https://golang.org/cl/13064044 |
||
---|---|---|
cmd | ||
dashboard | ||
go | ||
godoc | ||
gotype | ||
importer | ||
ssa | ||
.hgignore | ||
AUTHORS | ||
codereview.cfg | ||
CONTRIBUTORS | ||
LICENSE | ||
PATENTS | ||
README |
This subrepository holds the source for various packages and tools that support the Go programming language. Although at least some of the tools themselves will be included in binary Go distributions, the packages from which they are built are of little interest to most Go programmers. To submit changes to this repository, see http://golang.org/doc/contribute.html.