summaryrefslogtreecommitdiff
path: root/src/pkg/io/bytebuffer.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-125/+0
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-25Change os.Error convention:Russ Cox1-1/+1
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-23fix io.Bytebuffer.Read for new EOF semanticsRob Pike1-2/+7
R=rsc DELTA=7 (5 added, 0 deleted, 2 changed) OCL=30657 CL=30659
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-2/+2
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-19Add ReadByte to bytebufferScott Schwartz1-0/+11
R=rsc APPROVED=rsc DELTA=24 (24 added, 0 deleted, 0 changed) OCL=30459 CL=30540
2009-06-09mv src/lib to src/pkgRob Pike1-0/+109
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102