summaryrefslogtreecommitdiff
path: root/src/pkg/bufio/bufio.go
AgeCommit message (Collapse)AuthorFilesLines
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-11/+89
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-98/+93
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+549
2011-09-13Imported Upstream version 60Ondřej Surý1-552/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-9/+17
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-1/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-41/+54
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-2/+7
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-72/+102
2010-06-02bufio: change ReadSlice to match descriptionRuss Cox1-15/+5
On error, ReadSlice is defined to return the available data and advance past that data, but it was not behaving that way for err == ErrBufferFull, making it harder for callers to handle well. R=r CC=golang-dev http://codereview.appspot.com/1480041
2010-03-30single argument panicRuss Cox1-2/+2
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-05bufio: WriteRuneRob Pike1-0/+29
also fix a printing error in the test for bytes.Buffer R=golang-dev CC=golang-dev http://codereview.appspot.com/240042
2010-01-16give bufio.Writer.WriteString the same signature asRob Pike1-5/+11
bytes.Buffer.WriteString Fixes issue 535. R=rsc CC=golang-dev http://codereview.appspot.com/189096
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-147/+147
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-08bufio: use copy - significant speedup for writersRuss Cox1-12/+6
R=r http://codereview.appspot.com/167047
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-5/+5
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-18replace custom findByte with bytes.IndexByteRob Pike1-13/+3
R=rsc http://codereview.appspot.com/156093
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-19/+19
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-36/+36
R=rsc, r http://go/go-review/1025029
2009-11-08assorted cleanupRuss Cox1-6/+0
R=r, iant CC=go-dev http://go/go-review/1025024
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-9/+3
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-10-08more lgtm files from gofmtRuss Cox1-79/+79
R=gri OCL=35485 CL=35488
2009-08-27remove Line in bufio.ReadLine(Bytes|Slice|String)Russ Cox1-21/+24
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
2009-08-26fix bufio bugs involving readers that return os.EOF withRuss Cox1-42/+18
the last bit of data. add a new iotest.DataErrReader for tests R=r DELTA=93 (41 added, 31 deleted, 21 changed) OCL=33897 CL=33915
2009-08-06- bufio.ReadRune fix for empty reads w/o errorsRobert Griesemer1-5/+3
- added testcases R=rsc DELTA=61 (56 added, 2 deleted, 3 changed) OCL=32831 CL=32834
2009-08-06minor fixRobert Griesemer1-1/+1
R=rsc DELTA=2 (1 added, 1 deleted, 0 changed) OCL=32828 CL=32830
2009-08-03WriteStringRob Pike1-0/+19
R=rsc DELTA=41 (41 added, 0 deleted, 0 changed) OCL=32692 CL=32697
2009-07-01clean up some BUG/TODO in go codeRuss Cox1-4/+1
R=r DELTA=23 (1 added, 12 deleted, 10 changed) OCL=30957 CL=30980
2009-06-25Change os.Error convention:Russ Cox1-11/+17
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-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-17/+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-09mv src/lib to src/pkgRob Pike1-0/+515
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102