summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-12-16clear flags so that %+v does not pass the +Russ Cox1-1/+2
to the first field it prints. R=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=21324 CL=21328
2008-12-16If ByteBuffer has never been used, b.buf is nil but Data() should still work.Rob Pike1-0/+8
Fix the bug using a (safe) shared global empty array. R=rsc DELTA=8 (8 added, 0 deleted, 0 changed) OCL=21303 CL=21303
2008-12-15range clause must have = or :=Ken Thompson2-3/+3
:= illegal in for-increment R=r OCL=21204 CL=21204
2008-12-15add test for onceRuss Cox2-0/+32
R=r DELTA=31 (31 added, 0 deleted, 0 changed) OCL=21043 CL=21175
2008-12-11remove implicit int -> stringRuss Cox1-1/+1
R=ken OCL=21020 CL=21020
2008-12-11print field names on struct members.Russ Cox3-17/+117
also don't concatenate strings next to each other in the struct, like p.doprint does. expose additional print flags to formatters R=r DELTA=128 (111 added, 11 deleted, 6 changed) OCL=20991 CL=21018
2008-12-11add uintptr to reflect and printRob Pike3-35/+66
R=rsc DELTA=70 (35 added, 4 deleted, 31 changed) OCL=20993 CL=20998
2008-12-11if the typestring gives a field name of "?", drop it.Rob Pike3-4/+11
R=rsc DELTA=11 (7 added, 0 deleted, 4 changed) OCL=20988 CL=20988
2008-12-11handle the nil interface better in reflect and printRob Pike3-6/+25
R=rsc DELTA=25 (19 added, 0 deleted, 6 changed) OCL=20985 CL=20985
2008-12-11add JSON libraryRuss Cox7-0/+1138
R=r DELTA=1127 (1127 added, 0 deleted, 0 changed) OCL=20975 CL=20983
2008-12-10looks like i broke the buildRuss Cox1-1/+1
TBR=r OCL=20963 CL=20963
2008-12-10DNS messagesRuss Cox2-2/+686
R=r DELTA=685 (683 added, 0 deleted, 2 changed) OCL=20926 CL=20951
2008-12-10assorted cleanup and fixesRuss Cox8-98/+128
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-10StringBytes help routine, common functionality put into package io for sharing.Rob Pike1-0/+10
R=rsc DELTA=10 (10 added, 0 deleted, 0 changed) OCL=20928 CL=20931
2008-12-09bug126Ken Thompson2-2/+2
R=r OCL=20879 CL=20879
2008-12-09fix historical editing glitchRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20871 CL=20873
2008-12-09implement two TODOs in reflect:Rob Pike1-30/+23
- delete vestigial SetString method - make type map use interface instead of *interface R=rsc DELTA=31 (0 added, 7 deleted, 24 changed) OCL=20861 CL=20863
2008-12-09use unsafe.pointer in reflection objectsRob Pike6-313/+55
R=rsc DELTA=326 (4 added, 259 deleted, 63 changed) OCL=20853 CL=20856
2008-12-09- fixed bug with unicode text formatting: the number of bytesRobert Griesemer2-95/+201
per rune cannot be computed correctly if we have only parts of a rune - delay computation - added html filtering mode: html tags and entities are ignored for width computations - expanded tests: - extra tests for html text - extra tests that write text in various portions R=r DELTA=227 (126 added, 20 deleted, 81 changed) OCL=20833 CL=20835
2008-12-09replace assembly casts with unsafe.pointerRuss Cox13-164/+77
R=r DELTA=178 (18 added, 101 deleted, 59 changed) OCL=20822 CL=20826
2008-12-09more impossible time errorsRuss Cox1-4/+4
R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=20788 CL=20818
2008-12-08avoid skew in time.Tick; remove errors from time.Seconds, time.NanosecondsRuss Cox3-25/+36
R=r DELTA=46 (21 added, 10 deleted, 15 changed) OCL=20785 CL=20787
2008-12-05use sync.Mutex instead of a channel for lockingRob Pike2-5/+6
R=rsc DELTA=12 (3 added, 1 deleted, 8 changed) OCL=20631 CL=20634
2008-12-05- handle UTF-8 text in tabwriterRobert Griesemer2-55/+79
R=r DELTA=84 (27 added, 3 deleted, 54 changed) OCL=20539 CL=20584
2008-12-04strings.utflen -> utf8.RuneCount, RuneCountInStringRuss Cox5-43/+62
R=r DELTA=94 (52 added, 33 deleted, 9 changed) OCL=20547 CL=20552
2008-12-04Make run.bash run all the current tests.Ian Lance Taylor1-0/+4
R=r,rsc DELTA=8 (8 added, 0 deleted, 0 changed) OCL=20468 CL=20473
2008-12-04add mutex.MutexRuss Cox5-0/+173
R=r DELTA=349 (348 added, 0 deleted, 1 changed) OCL=20380 CL=20472
2008-12-04fix build - forgot these filesRuss Cox3-0/+115
TBR=r OCL=20448 CL=20448
2008-12-03add time.Tick()Russ Cox5-15/+134
R=r DELTA=130 (115 added, 1 deleted, 14 changed) OCL=20376 CL=20385
2008-12-03preparation for exec.Russ Cox9-2/+120
* syscall: add syscall.RawSyscall, which doesn't use sys.entersyscall/sys.exitsyscall add syscall.dup2 add syscall.BytePtrPtr add syscall.Rusage, RusagePtr add syscall.F_GETFD, F_SETFD, FD_CLOEXEC * runtime: clean up, correct signal handling. can now survive (continue running after) a signal. R=r DELTA=394 (286 added, 51 deleted, 57 changed) OCL=20351 CL=20369
2008-12-03Make strconv.atof("-0") return -0Russ Cox2-7/+9
and update test. R=iant DELTA=11 (3 added, 1 deleted, 7 changed) OCL=20350 CL=20362
2008-12-01be more precise in ftoa_test.Russ Cox1-12/+17
R=ken OCL=20173 CL=20173
2008-12-01add blank line (response to post-submit review of CL 19422)Russ Cox1-0/+1
TBR=r OCL=20127 CL=20127
2008-11-25change meaning of $GOMAXPROCS to number of cpus to use,Russ Cox3-6/+25
not number of threads. can still starve all the other threads, but only by looping, not by waiting in a system call. fix darwin syscall.Syscall6 bug. fix chanclient bug. delete $GOMAXPROCS from network tests. add stripped down printf, sys.printhex to runtime. R=r DELTA=355 (217 added, 36 deleted, 102 changed) OCL=20017 CL=20019
2008-11-25- fixed a problem with flushingRobert Griesemer2-52/+139
- added extra tests R=r DELTA=164 (107 added, 20 deleted, 37 changed) OCL=20002 CL=20004
2008-11-25gotest: change pattern to Test([^a-z].*)?Russ Cox1-1/+1
warn about files with no tests be clear about where testing warnings come from R=r DELTA=18 (12 added, 3 deleted, 3 changed) OCL=19988 CL=19993
2008-11-25- delete vector.go - not needed anymoreRobert Griesemer2-125/+0
- runs all.bash R=r DELTA=121 (0 added, 121 deleted, 0 changed) OCL=19960 CL=19983
2008-11-25make a (rudimentary) ByteBuffer and put it in package "io".Rob Pike4-6/+152
fix up protocol buffers to use it. R=rsc DELTA=1232 (612 added, 572 deleted, 48 changed) OCL=19964 CL=19981
2008-11-25% x inserts spaces between hex bytes in string/*[]byteRuss Cox2-0/+4
R=r DELTA=7 (7 added, 0 deleted, 0 changed) OCL=19967 CL=19978
2008-11-25add author linesRuss Cox3-5/+1
R=r DELTA=150 (147 added, 0 deleted, 3 changed) OCL=19968 CL=19977
2008-11-24add hash to build; rm pkg/* in clean.bashRuss Cox1-0/+2
R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=19935 CL=19937
2008-11-24convert tests.Russ Cox4-0/+758
refine gotest's test selection criteria. R=r DELTA=1590 (745 added, 844 deleted, 1 changed) OCL=19903 CL=19936
2008-11-24replay CL 19916 and CL 19913 now that the build can handle themRuss Cox14-66/+667
TBR=r OCL=19924 CL=19934
2008-11-24remove old .6 after install,Russ Cox1-2/+3
so that compilation of other .6 will use the copy in goroot/pkg R=r DELTA=3 (1 added, 0 deleted, 2 changed) OCL=19931 CL=19933
2008-11-24add missing fileRob Pike1-0/+178
R=rsc OCL=19926 CL=19926
2008-11-24Automated g4 rollback of changelist 19913.Russ Cox2-32/+3
*** Reason for rollback *** broke build *** Original change description *** bufio.ReadRune TBR=r OCL=19923 CL=19923
2008-11-24Automated g4 rollback of changelist 19916.Russ Cox13-636/+64
*** Reason for rollback *** broke build *** Original change description *** utf8: add InString routines for decoding in strings reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests TBR=r OCL=19920 CL=19920
2008-11-24utf8: add InString routines for decoding in stringsRuss Cox13-64/+636
reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests R=r DELTA=756 (597 added, 121 deleted, 38 changed) OCL=19888 CL=19916
2008-11-24bufio.ReadRuneRobert Griesemer2-3/+32
R=rsc DELTA=32 (29 added, 0 deleted, 3 changed) OCL=19809 CL=19913
2008-11-24make bignum_test a testRuss Cox1-0/+469
R=gri DELTA=967 (468 added, 499 deleted, 0 changed) OCL=19906 CL=19912