summaryrefslogtreecommitdiff
path: root/src/lib/fmt/fmt_test.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike1-247/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-05-15implement %#o %#x %#X formatsRob Pike1-1/+6
R=rsc OCL=28936 CL=28936
2009-04-06add method Value() Value to InterfaceValue.Russ Cox1-18/+4
use Value() in print to print underlying value from interface. before: package main import "fmt" func main() { x := []interface{} {1, "hello", 2.5}; fmt.Println(x[0], x[1], x[2], x); } 1 hello 2.5 [<non-nil interface> <non-nil interface> <non-nil interface>] after: 1 hello 2.5 [1 hello 2.5] R=r DELTA=44 (22 added, 16 deleted, 6 changed) OCL=27139 CL=27141
2009-03-06delete vestigial references to package syscallRob Pike1-1/+0
R=rsc DELTA=8 (0 added, 5 deleted, 3 changed) OCL=25857 CL=25861
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox1-122/+122
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-13convert composite literals from { } to ( ).Russ Cox1-122/+122
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-01-22move math routines from package sys to package math,Russ Cox1-3/+4
though they still build in src/runtime. use cgo instead of hand-written wrappers. R=r DELTA=740 (289 added, 300 deleted, 151 changed) OCL=23326 CL=23331
2009-01-20delete exportRuss Cox1-5/+5
TBR=r OCL=23121 CL=23127
2009-01-15more casifying fixupsRob Pike1-122/+122
R=rsc DELTA=213 (0 added, 0 deleted, 213 changed) OCL=22878 CL=22882
2009-01-15printf->Printf etc.Rob Pike1-15/+15
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2008-12-23put array test in table, with TODO to fix when arrays work in interfaces.Rob Pike1-0/+8
TBR=rsc OCL=21766 CL=21766
2008-12-22print array (not just *array) using %vRob Pike1-0/+14
TBR=rsc DELTA=34 (33 added, 0 deleted, 1 changed) OCL=21718 CL=21718
2008-12-19[] and struct in interfaces.Russ Cox1-15/+6
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-19fmt and reflect updates for recent changesRuss Cox1-6/+7
TBR=r OCL=21580 CL=21583
2008-12-18convert *[] to [].Russ Cox1-5/+7
R=r OCL=21563 CL=21571
2008-12-11print field names on struct members.Russ Cox1-0/+75
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-11-25% x inserts spaces between hex bytes in string/*[]byteRuss Cox1-0/+1
R=r DELTA=7 (7 added, 0 deleted, 0 changed) OCL=19967 CL=19978
2008-11-24replay CL 19916 and CL 19913 now that the build can handle themRuss Cox1-0/+164
TBR=r OCL=19924 CL=19934
2008-11-24Automated g4 rollback of changelist 19916.Russ Cox1-164/+0
*** 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 Cox1-0/+164
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