go/src/fmt
Daniel Martí 112f28defc io: export StringWriter
And start using it elsewhere in the standard library, removing the
copies in the process.

While at it, rewrite the io.WriteString godoc to be more clear, since it
can now make reference to the defined interface.

Fixes #27946.

Change-Id: Id5ba223c09c19e5fb49815bd3b1bd3254fc786f3
Reviewed-on: https://go-review.googlesource.com/c/139457
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-10-03 20:13:35 +00:00
..
doc.go strconv: clarify "g" and "G" precision in the docs 2018-08-01 00:57:00 +00:00
example_test.go fmt: unify the printing examples 2018-09-24 21:15:52 +00:00
export_test.go
fmt_test.go io: export StringWriter 2018-10-03 20:13:35 +00:00
format.go fmt: fix incorrect format of whole-number floats when using %#v 2018-08-28 20:15:15 +00:00
gostringer_example_test.go fmt: add example for GoStringer interface 2018-09-06 04:25:17 +00:00
print.go fmt: fix usage of sync.Pool 2018-09-19 18:01:04 +00:00
scan.go fmt: remove stopAtNewline unused parameter 2017-08-11 04:56:58 +00:00
scan_test.go
stringer_example_test.go fmt: add an example for Errorf 2018-08-30 19:40:13 +00:00
stringer_test.go