Merge remote-tracking branch 'yourabi/master'

This commit is contained in:
Mark McGranaghan 2014-05-11 17:17:09 -07:00
commit 6e48a2324e

View File

@ -32,7 +32,8 @@ func main() {
// parts of a file are read. For these tasks, start
// by `Open`ing a file to obtain an `os.File` value.
f, err := os.Open("/tmp/dat")
check(err)
// Read some bytes from the beginning of the file.
// Allow up to 5 to be read but also note how many
// actually were read.