1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:04:40 -07:00
go/src/io
Russ Cox e671a552fe io: document and test MultiWriter error behavior
MultiWriter(w1, w2) only writes to w2 if w1.Write succeeds.
I did not know this, and it was not documented.
Document and test.

Change-Id: Idec2e8444d5a7aca0b95d07814a28daa454eb1d3
Reviewed-on: https://go-review.googlesource.com/78123
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-11-15 21:27:42 +00:00
..
ioutil io/ioutil: don't cap buffer size in ReadFile 2017-08-31 19:32:18 +00:00
example_test.go io: add example for Pipe 2017-08-22 19:42:20 +00:00
io_test.go io: Add benchmarks for CopyN 2017-09-20 15:00:31 +00:00
io.go io: Improve performance of CopyN 2017-09-20 13:41:50 +00:00
multi_test.go io: document and test MultiWriter error behavior 2017-11-15 21:27:42 +00:00
multi.go io: document and test MultiWriter error behavior 2017-11-15 21:27:42 +00:00
pipe_test.go io: fix Pipe regression with differing error types 2017-11-02 23:05:53 +00:00
pipe.go io: fix Pipe regression with differing error types 2017-11-02 23:05:53 +00:00