miekg/gobook — pull request #2 by hujinpu (2011-10-25 02:06:54+00:00)
Title: Chapter 8's mistake

In section "Files and directories", because `buf := make([]byte, 1024),` `n,_:=f.Read(buf)` should Read up to 1024 bytes at the time, not 1023 bytes.

I also think change ` os.Stdout.Write(buf[0:n])` to `os.Stdout.Write(buf[:n])` is more slice. :)