commit | 09b7f4f12a961ed8dad8a37de782f9403e211562 | [log] [tgz] |
---|---|---|
author | Aaron Jacobs <jacobsa@google.com> | Fri Mar 27 07:31:31 2015 +1100 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Mon Mar 30 09:43:11 2015 +0000 |
tree | 43c3b6ffc4eb53015ee5c5c0b7f37efced5c68d5 | |
parent | b86f393167a19e9aca1c86eb259396aeae976550 [diff] |
io: clarify the behavior of PipeWriter.CloseWithError(nil). The previous wording implied that reads would return no error, rather than EOF. It's convenient for users to know that Close() is equivalent to CloseWithError(nil) because it can remove a branch from their error handling code where they want to close the pipe in the appropriate way. For example: https://github.com/jacobsa/gcloud/blob/6e9a8cec0a3f0834da3e9c9725dfe0bf79cccebb/gcs/bucket.go#L637-L643 Change-Id: I618bffe556eb518011e7ba5cdce1eb0ff536350e Reviewed-on: https://go-review.googlesource.com/8152 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
For documentation about how to install and use Go, visit https://golang.org/ or load doc/install-source.html in your web browser.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Please report issues here: https://golang.org/issue/new
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
If you have just untarred a binary Go distribution, you need to set the environment variable $GOROOT to the full path of the go directory (the one containing this file). You can omit the variable if you unpack it into /usr/local/go, or if you rebuild from sources by running all.bash (see doc/install-source.html). You should also add the Go binary directory $GOROOT/bin to your shell's path.
For example, if you extracted the tar file into $HOME/go, you might put the following in your .profile:
export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin
See https://golang.org/doc/install or doc/install.html for more details.