1
0
mirror of https://github.com/golang/go synced 2024-10-05 07:21:25 -06:00
go/src
Ingo Oeser 33fd4535a4 cmd/compile: use range construct
so the code is more readable.

Also use n[i] = val instead of n = append(n, val),
because this avoids a function call to append.

NOTE: compiles, but I had trouble running toolstash -cmp and need sleep
now.

@Ian this might save you some grunt work :-)

Change-Id: I2a4c70396c58905f7d5aabf83f3020f11dea0e89
Reviewed-on: https://go-review.googlesource.com/20430
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-03-09 04:58:07 +00:00
..
archive all: single space after period. 2016-03-02 00:13:47 +00:00
bufio bufio: Reader.Peek returns partial results on ErrBufferFull 2016-03-04 03:51:22 +00:00
builtin
bytes all: single space after period. 2016-03-02 00:13:47 +00:00
cmd cmd/compile: use range construct 2016-03-09 04:58:07 +00:00
compress compress/flate: take NewWriter out of the benchmark loop. 2016-03-09 04:40:40 +00:00
container all: single space after period. 2016-03-02 00:13:47 +00:00
crypto crypto/tls: test for timeout error using the net.Error interface 2016-03-08 22:40:49 +00:00
database/sql all: single space after period. 2016-03-02 00:13:47 +00:00
debug Rewrite leftover references to plan9.bell-labs.com to 9p.io. 2016-03-06 07:07:01 +00:00
encoding all: single space after period. 2016-03-02 00:13:47 +00:00
errors all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
expvar all: single space after period. 2016-03-02 00:13:47 +00:00
flag all: single space after period. 2016-03-02 00:13:47 +00:00
fmt fmt: refactor and unify float and complex formatting 2016-03-06 02:18:05 +00:00
go testing: implement 'Unordered Output' in Examples. 2016-03-09 04:34:41 +00:00
hash hash/crc32: use slicing by 8 for Castagnoli and smaller sizes 2016-03-08 16:46:24 +00:00
html all: single space after period. 2016-03-02 00:13:47 +00:00
image Rewrite leftover references to plan9.bell-labs.com to 9p.io. 2016-03-06 07:07:01 +00:00
index/suffixarray
internal all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
io all: single space after period. 2016-03-02 00:13:47 +00:00
log all: single space after period. 2016-03-02 00:13:47 +00:00
math testing: implement 'Unordered Output' in Examples. 2016-03-09 04:34:41 +00:00
mime mime/multipart: don't call Read on io.Reader after an error is seen 2016-03-07 19:50:16 +00:00
net net/http/httptest: record trailing headers in ResponseRecorder 2016-03-08 19:30:38 +00:00
os os/user: make OS-specific getgrouplist calls 2016-03-08 20:58:00 +00:00
path Rewrite leftover references to plan9.bell-labs.com to 9p.io. 2016-03-06 07:07:01 +00:00
reflect cmd/compile: remove slices from rtype.funcType 2016-03-09 01:25:18 +00:00
regexp all: single space after period. 2016-03-02 00:13:47 +00:00
runtime cmd/compile: remove slices from rtype.funcType 2016-03-09 01:25:18 +00:00
sort all: single space after period. 2016-03-02 00:13:47 +00:00
strconv all: single space after period. 2016-03-02 00:13:47 +00:00
strings all: single space after period. 2016-03-02 00:13:47 +00:00
sync all: single space after period. 2016-03-02 00:13:47 +00:00
syscall os, syscall: skip tests when environment doesn't permit testing 2016-03-07 22:40:50 +00:00
testing testing: implement 'Unordered Output' in Examples. 2016-03-09 04:34:41 +00:00
text all: single space after period. 2016-03-02 00:13:47 +00:00
time all: single space after period. 2016-03-02 00:13:47 +00:00
unicode all: single space after period. 2016-03-02 00:13:47 +00:00
unsafe all: single space after period. 2016-03-02 00:13:47 +00:00
vendor
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc