go/src/io
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
..
ioutil ghchinoy: add example for ioutil.WriteFile 2018-08-30 18:38:34 +00:00
example_test.go io: add example for Pipe 2017-08-22 19:42:20 +00:00
io.go io: export StringWriter 2018-10-03 20:13:35 +00:00
io_test.go io: eliminate full copy of copy loop in CopyN 2017-11-16 02:24:37 +00:00
multi.go io: export StringWriter 2018-10-03 20:13:35 +00:00
multi_test.go io: document and test MultiWriter error behavior 2017-11-15 21:27:42 +00:00
pipe.go io: fix Pipe regression with differing error types 2017-11-02 23:05:53 +00:00
pipe_test.go io: fix Pipe regression with differing error types 2017-11-02 23:05:53 +00:00