go/src
Patrick Barker b130764043 printer: check if specs exist before accessing them in genDecl printer
Checks that specs exist before attempting to access the first element in genDecl printer.

Change-Id: I3619bcabf6fec64c88b7a10cdb7be355e9e40559
GitHub-Last-Rev: 54cf699c96
GitHub-Pull-Request: golang/go#30823
Reviewed-on: https://go-review.googlesource.com/c/go/+/167390
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-03-14 16:33:21 +00:00
..
archive archive/tar, syscall: add statUnix for aix/ppc64 2019-02-27 23:40:20 +00:00
bufio bufio: fix emptyFinalToken example to handle multiple Reads 2019-03-02 18:28:10 +00:00
builtin builtin: make len's godoc less ambiguous 2019-03-13 20:57:32 +00:00
bytes bytes, strings: speed up TrimSpace 4-5x for common ASCII cases 2019-03-12 15:52:17 +00:00
cmd cmd/compile: make math/bits.RotateLeft{32,64} intrinsics on ppc64x 2019-03-14 14:13:34 +00:00
compress compress/gzip: clarify that Multistream gzip requires a ByteReader 2019-02-26 23:02:40 +00:00
container container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
context
crypto crypto/x509: move debug prints to standard error 2019-03-14 02:49:02 +00:00
database/sql database/sql: fix comment grammar 2019-03-07 05:19:01 +00:00
debug debug/gosym: simplify parsing symbol name rule 2019-03-09 00:24:42 +00:00
encoding encoding/base64: speed up the decoder 2019-03-13 10:39:58 +00:00
errors fmt: make type of fmt.Errorf the same as that of errors.New 2019-03-14 09:45:22 +00:00
expvar
flag flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
fmt fmt: make type of fmt.Errorf the same as that of errors.New 2019-03-14 09:45:22 +00:00
go printer: check if specs exist before accessing them in genDecl printer 2019-03-14 16:33:21 +00:00
hash
html html/template: prevent test from failing with nil pointer dereference 2019-03-02 01:53:40 +00:00
image image/png: delete unused statement 2019-02-28 18:24:51 +00:00
index/suffixarray
internal fmt: make type of fmt.Errorf the same as that of errors.New 2019-03-14 09:45:22 +00:00
io io: align style of test comments in multi_test.go 2019-02-26 23:01:20 +00:00
log log: make the name of error clearer 2019-03-07 15:36:29 +00:00
math math/big: add support for underscores '_' in numbers 2019-03-12 22:58:58 +00:00
mime
net runtime, internal/poll, net: report event scanning error on read event 2019-03-13 08:53:02 +00:00
os os: drop special case for FreeBSD 10.4 in newFile 2019-03-12 06:33:01 +00:00
path path/filepath: don't discard .. in EvalSymlinks 2019-03-05 01:01:11 +00:00
plugin
reflect reflect: make all flag.mustBe* methods inlinable 2019-03-09 19:50:24 +00:00
regexp regexp: add ReplaceAllStringFunc example 2019-02-27 21:48:41 +00:00
runtime runtime: simplify constant strings in asm 2019-03-14 00:12:28 +00:00
sort sort: change let to let's 2019-01-27 01:34:56 +00:00
strconv strconv: simplify (*extFloat).Multiply using math/bits.Mul64 2019-03-04 22:25:21 +00:00
strings bytes, strings: speed up TrimSpace 4-5x for common ASCII cases 2019-03-12 15:52:17 +00:00
sync sync: allow inlining the RWMutex.RUnlock fast path 2019-03-09 16:34:17 +00:00
syscall syscall: add Chroot and Dup2 for aix/ppc64 2019-03-13 16:52:32 +00:00
testdata
testing testing/cover: improve message when a package has no statements 2019-03-13 04:11:58 +00:00
text text/tabwriter: use a single defer per Write call 2019-03-12 22:34:30 +00:00
time time: add support for day-of-year in Format and Parse 2019-03-08 01:21:33 +00:00
unicode
unsafe
vendor all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
Make.dist
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
go.sum all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
iostest.bash cmd/dist: build exec wrappers during bootstrap 2019-02-26 17:59:23 +00:00
make.bash cmd,std: add go.mod files 2019-03-11 20:27:41 +00:00
make.bat cmd,std: add go.mod files 2019-03-11 20:27:41 +00:00
make.rc cmd,std: add go.mod files 2019-03-11 20:27:41 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
run.bat
run.rc