1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:04:43 -07:00
go/src
Rob Pike 57058327c8 fmt: empty byte slices should print nothing in hex
The documentation is clear that formats like %02x applied to a
byte slice are per-element, so the result should be nothing if the
slice is empty. It's not, because the top-level padding routine is called.
It shouldn't be: the loop does the padding for us.

Fixes #10430.

Change-Id: I04ea0e804c0f2e70fff3701e5bf22acc90e890da
Reviewed-on: https://go-review.googlesource.com/8864
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-04-13 20:50:13 +00:00
..
archive
bufio
builtin
bytes bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00
cmd cmd/dist: use gccgo as bootstrap compiler 2015-04-13 19:10:16 +00:00
compress compress/flate: fix typo in comment 2015-04-01 16:48:04 +00:00
container
crypto crypto/x509: skip arm64 tests limited by iOS 2015-04-13 11:55:32 +00:00
database/sql database/sql: Retry with a fresh connection after maxBadConnRetries 2015-04-08 16:18:36 +00:00
debug debug/dwarf: add Entry.AttrField method to get *Field by Attr 2015-04-12 14:38:00 +00:00
encoding encoding/gob: more checks for corrupted data 2015-04-09 17:02:19 +00:00
errors
expvar expvar: swap Float sync. from mutex to atomic. 2015-04-12 23:07:50 +00:00
flag
fmt fmt: empty byte slices should print nothing in hex 2015-04-13 20:50:13 +00:00
go go/build: skip darwin/arm64 tests that need GOROOT 2015-04-13 11:53:49 +00:00
hash
html text/template: provide a mechanism for options 2015-04-03 23:40:59 +00:00
image image/gif: expose disposal, bg index and Config 2015-04-13 04:35:04 +00:00
index/suffixarray
internal cmd/go: cache results of HTTP requests done during meta tag discovery 2015-04-13 07:08:00 +00:00
io io: clarify Copy docs regarding error handling 2015-04-08 13:39:33 +00:00
log log/syslog: limiting tests on darwin/arm64 2015-04-13 11:54:28 +00:00
math math/big: better doc strings for ErrNaN functionality 2015-04-09 20:18:32 +00:00
mime
net net: document that DNSError.Timeout and Temporary are unreliable 2015-04-13 20:41:50 +00:00
os os/exec: skip fork test on darwin/arm64 2015-04-13 11:53:09 +00:00
path path/filepath: skip test on darwin/arm64 2015-04-13 11:52:46 +00:00
reflect reflect, runtime: check equality, not identity, for method names 2015-04-11 17:35:44 +00:00
regexp regexp: skip backtracker for long programs 2015-04-09 09:38:23 +00:00
runtime runtime: shared library runtime init for arm 2015-04-13 18:58:18 +00:00
sort
strconv strconv: use 64bit uint for decimal conversion if available 2015-04-10 17:42:20 +00:00
strings bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00
sync sync/atomic: skip issue 7338 test on darwin/arm64 2015-04-12 02:47:43 +00:00
syscall syscall: ignore getwd errors when fixing working directory on Plan 9 2015-04-12 17:37:30 +00:00
testing
text text/template: provide a mechanism for options 2015-04-03 23:40:59 +00:00
time time: add Time.AppendFormat 2015-04-10 20:18:22 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: copy pkg for gcimporter tests 2015-04-08 14:39:07 +00:00
bootstrap.bash
clean.bash
clean.bat
clean.rc
iostest.bash iostest.bash: do not restart device by default 2015-04-13 16:42:11 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc