1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:11:22 -06:00
go/src/fmt
Martin Möhrmann ad391c908b fmt: split doPrint into two specialized functions
Remove format flag reset from doPrint. Flags will not be set in
doPrint and printArg will not return with flags modified.

Remove the extra arguments addspace and addnewline and split up
doPrint into two simpler and specialized functions.

Change-Id: Ib884d027abfbb31c6f01b008f51d6d76fc0c1a17
Reviewed-on: https://go-review.googlesource.com/21181
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2016-03-26 12:12:04 +00:00
..
doc.go fmt: clarify reflect.Value printing 2015-10-19 18:29:36 +00:00
export_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
fmt_test.go fmt: unify integer formatting 2016-03-20 12:08:03 +00:00
format.go fmt: unify integer formatting 2016-03-20 12:08:03 +00:00
print.go fmt: split doPrint into two specialized functions 2016-03-26 12:12:04 +00:00
scan_test.go all: delete dead test code 2016-03-21 07:10:08 +00:00
scan.go fmt: replace variables for type bit sizes with constants 2016-03-16 01:38:54 +00:00
stringer_test.go