go/src
Rob Pike a00cec90ca fmt: allow any type in a format's width argument
The construction
	fmt.Printf("%*d", n, 4)
reads the argument n as a width specifier to use when printing 4.
Until now, only strict int type was accepted here and it couldn't
be fixed because the fix, using reflection, broke escape analysis
and added an extra allocation in every Printf call, even those that
do not use this feature.

The compiler has been fixed, although I am not sure when exactly,
so let's fix Printf and then write

Fixes #10732.

Change-Id: I79cf0c4fadd876265aa39d3cb62867247b36ab65
Reviewed-on: https://go-review.googlesource.com/14491
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-09-10 20:53:22 +00:00
..
archive archive/tar: don't treat multiple file system links as a tar hardlink 2015-08-04 17:34:43 +00:00
bufio
builtin
bytes bytes: improve Compare function on amd64 for large byte arrays 2015-08-26 03:52:20 +00:00
cmd cmd/internal/obj, cmd/link, runtime: a saner model for TLS on arm 2015-09-10 19:49:13 +00:00
compress compress/lzw: tidy up some flush calls. 2015-09-09 01:45:00 +00:00
container
crypto crypto/x509: emit PKIX names in a more standard order. 2015-08-30 15:34:48 +00:00
database/sql database/sql: close bad connections in commit or rollback: 2015-09-03 17:07:37 +00:00
debug all: remove executable bit from several files 2015-09-04 02:59:49 +00:00
encoding encoding/xml: Return SyntaxError for unmatched root start elements. 2015-09-10 01:18:30 +00:00
errors
expvar
flag
fmt fmt: allow any type in a format's width argument 2015-09-10 20:53:22 +00:00
go all: minor documentation tweaks for constants 2015-09-09 05:07:52 +00:00
hash hash/*: document the byte order used by the Sum methods 2015-09-10 03:34:23 +00:00
html html/template: preserve attr in stateBeforeValue 2015-09-09 23:31:06 +00:00
image image/png: reject zero-width and zero-height images. 2015-09-09 02:53:58 +00:00
index/suffixarray
internal internal/syscall/windows/registry: do not panic when data is large 2015-09-04 04:47:26 +00:00
io io: add WriteString support to MultiWriter 2015-09-01 04:00:12 +00:00
log
math math/big: add example for RoundingMode 2015-09-10 19:58:29 +00:00
mime mime: move examples to external test file 2015-08-22 18:39:29 +00:00
net net: Make Listen(":port") use IPv6 when IPv4 is not supported. 2015-09-05 02:31:22 +00:00
os os: remove a redundant branch in File.Read. 2015-08-31 04:42:04 +00:00
path all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
reflect runtime: on map update, don't overwrite key if we don't need to. 2015-09-09 21:06:49 +00:00
regexp
runtime cmd/internal/obj, cmd/link, runtime: a saner model for TLS on arm 2015-09-10 19:49:13 +00:00
sort sort: Fix typo in Stable() comment 2015-08-17 06:58:16 +00:00
strconv strconv: add QuoteToGraphic and friends 2015-09-08 17:33:17 +00:00
strings
sync runtime, sync/atomic: add memory barriers in arm cas routines 2015-07-30 20:11:11 +00:00
syscall syscall: implement getwd on Solaris 2015-09-09 19:58:33 +00:00
testing testing/quick: terminate for arbitrary recursive types 2015-08-29 19:23:37 +00:00
text text/template: perform value validity checks 2015-09-09 23:25:44 +00:00
time time: allow any one- or two-digit day of the month when parsing. 2015-09-10 20:27:53 +00:00
unicode unicode: include rune 0 in RangeTables. 2015-08-24 15:05:48 +00:00
unsafe
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: Fix bootstrap.bash for official source tarballs 2015-09-01 19:52:59 +00:00
buildall.bash
clean.bash build: clean current tree in clean.bash 2015-08-05 19:36:15 +00:00
clean.bat
clean.rc
iostest.bash
make.bash make.bash: abort if $GOROOT_BOOTSTRAP == $GOROOT 2015-08-24 03:04:52 +00:00
make.bat
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc