commit | 019297a9aa63fc1ee016e0ff4f4d86e8dc578541 | [log] [tgz] |
---|---|---|
author | Aaron Jacobs <jacobsa@google.com> | Fri Jul 24 14:21:11 2015 +1000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Mon Aug 31 04:42:04 2015 +0000 |
tree | 3871f0cd1ce7d9de239fc919c08a849ca1a93cd7 | |
parent | 3c9fa388df826a67cb5042513e3df079709e6b8b [diff] |
os: remove a redundant branch in File.Read. All implementations of File.read ensure that n >= 0. This is usually via fixCount, except for Windows console reads, which only ever add to n. Change-Id: Ic019d6a2da5ef1ac68d2690c908deca4fcc6b4a4 Reviewed-on: https://go-review.googlesource.com/12624 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@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.