1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:44:45 -07:00
go/src
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
..
archive archive/tar: change error prefix 2017-11-15 18:56:32 +00:00
bufio bufio: Use maxConsecutiveEmptyReads instead of 100 2017-11-14 05:21:00 +00:00
builtin
bytes bytes, strings: restore O(1) behavior of IndexAny(s, "") and LastIndexAny(s, "") 2017-11-15 21:26:05 +00:00
cmd cmd/dist: adjust package doc 2017-11-15 21:26:16 +00:00
compress
container container/ring: fix example_test.go 2017-10-31 03:52:55 +00:00
context
crypto crypto/sha1, crypto/sha256: add go:noescape annotations 2017-11-15 16:00:24 +00:00
database/sql database/sql: do not leak the connectionResetter goroutine 2017-11-14 00:25:42 +00:00
debug
encoding encoding/xml: move unexported const out of exported const block 2017-11-15 21:27:07 +00:00
errors
expvar
flag flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output 2017-10-31 03:54:16 +00:00
fmt fmt: hide bad format in test from vet 2017-10-31 13:49:53 +00:00
go go/printer: indent lone comments in composite lits 2017-11-15 18:48:48 +00:00
hash crypto, hash: document marshal/unmarshal implementation 2017-11-15 00:06:24 +00:00
html
image all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
index/suffixarray
internal internal/cpu: detect cpu features in internal/cpu package 2017-11-14 19:07:15 +00:00
io io: document and test MultiWriter error behavior 2017-11-15 21:27:42 +00:00
log
math go/printer: indent lone comments in composite lits 2017-11-15 18:48:48 +00:00
mime all: unindent some if bodies by exiting early 2017-10-31 20:07:46 +00:00
net net/url: allow *User functions to work on a nil receiver. 2017-11-15 02:55:06 +00:00
os syscall: fix NaCl Link syscall error handling 2017-11-06 16:36:34 +00:00
path
plugin
reflect all: unindent some if bodies by exiting early 2017-10-31 20:07:46 +00:00
regexp go/printer: forbid empty line before first comment in block 2017-11-02 18:17:22 +00:00
runtime runtime: fix gctrace STW CPU time and CPU fraction 2017-11-15 18:23:23 +00:00
sort
strconv
strings bytes, strings: restore O(1) behavior of IndexAny(s, "") and LastIndexAny(s, "") 2017-11-15 21:26:05 +00:00
sync all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
syscall syscall: change SysProcAttr.Token type to Token 2017-11-07 22:06:35 +00:00
testing
text text/template: remove unnecessary lexer field 2017-11-10 04:13:30 +00:00
time time: add example for Time.Unix 2017-11-13 18:52:13 +00:00
unicode go/printer: forbid empty line before first comment in block 2017-11-02 18:17:22 +00:00
unsafe
vendor/golang_org/x vendor: add golang.org/x/crypto/cryptobyte 2017-11-08 00:18:05 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/dist: fix bad LC_TIME assumption in 'date' invocation 2017-11-03 13:42:33 +00:00
make.bat build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
Make.dist
make.rc build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc