- 04 Oct, 2010 1 commit
-
-
Rob Pike authored
Fixes #1159. R=rsc, adg CC=golang-dev https://golang.org/cl/2305043
-
- 01 Oct, 2010 1 commit
-
-
Andrew Gerrand authored
This crops up in a lot of places. It's just a one-liner, but doesn't add any dependancies. Seems worth it. R=r, r2 CC=golang-dev https://golang.org/cl/2344041
-
- 24 Sep, 2010 2 commits
-
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/2273042
-
Rob Pike authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/2198044
-
- 22 Sep, 2010 1 commit
-
-
Anthony Martin authored
R=r CC=golang-dev https://golang.org/cl/2237044
-
- 04 Sep, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/2160041
-
- 19 Aug, 2010 1 commit
-
-
Rob Pike authored
R=rsc, gri CC=golang-dev https://golang.org/cl/1952045
-
- 16 Aug, 2010 1 commit
-
-
Rob Pike authored
the solution must work around a weakness in the reflection library: there is no way to do type-safe conversions under reflection. R=rsc CC=golang-dev https://golang.org/cl/2000041
-
- 13 Aug, 2010 2 commits
-
-
Rob Pike authored
Fixes #1024. R=rsc CC=golang-dev https://golang.org/cl/1961042
-
Rob Pike authored
Rearrange code to clarify handling of %T, Formatter, GoStringer, and Stringer. R=rsc CC=golang-dev https://golang.org/cl/1973043
-
- 29 Jul, 2010 1 commit
-
-
Rob Pike authored
Fixes #976. R=rsc, chris tighe, r CC=golang-dev https://golang.org/cl/1697057
-
- 28 Jul, 2010 1 commit
-
-
Rob Pike authored
Fix the documentation of newline handling in *f routines to match the implementation. R=rsc CC=golang-dev https://golang.org/cl/1899042
-
- 12 Jul, 2010 1 commit
-
-
Rob Pike authored
Fixes #904. R=rsc CC=golang-dev https://golang.org/cl/1803043
-
- 28 Jun, 2010 1 commit
-
-
Rob Pike authored
nice side effect: slices now obey their format verb. example: fmt.Printf("%q\n", []string{"a"}) R=rsc CC=golang-dev https://golang.org/cl/1729045
-
- 21 Jun, 2010 1 commit
-
-
Russ Cox authored
gob: substitute slice for map R=r CC=golang-dev https://golang.org/cl/1699045
-
- 20 Jun, 2010 1 commit
-
-
Russ Cox authored
update other code to match. R=r CC=golang-dev https://golang.org/cl/1680044
-
- 15 Jun, 2010 2 commits
-
-
Rob Pike authored
Fix a bug that caused it to ignore field widths. R=rsc CC=golang-dev https://golang.org/cl/1704041
-
Rob Pike authored
This shortens, simplifies and regularizes the code significantly. (Improvements to reflect could make another step.) Passes all.bash. One semantic change occurs: The String() method changes behavior. It used to run only for string formats such as %s and %q. Instead, it now runs whenever the item has the method and the result is then processed by the format as a string. Besides the regularization, this has three effects: 1) width is honored for String() items 2) %x works for String() items 3) implementations of String that merely recur will recur forever Regarding point 3, example from the updated documentation: type X int func (x X) String() string { return Sprintf("%d", x) } should cast the value before recurring: func (x X) String() string { return Sprintf("%d", int(x)) } R=rsc CC=golang-dev https://golang.org/cl/1613045
-
- 03 Jun, 2010 1 commit
-
-
Rob Pike authored
Also fix an interface bug: white-space-delimited doesn't work well for cases like "%d, %d" on "23, 23") R=rsc CC=golang-dev https://golang.org/cl/1502041
-
- 02 Jun, 2010 2 commits
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1486041
-
Rob Pike authored
- provide convenience functions for scanning strings - enable Scanf etc. - update doc comments R=rsc CC=golang-dev https://golang.org/cl/1451044
-
- 31 May, 2010 1 commit
-
-
Rob Pike authored
Fixes #821. R=rsc CC=golang-dev https://golang.org/cl/1434041
-
- 28 May, 2010 1 commit
-
-
Rob Pike authored
read from standard input. Add description of scanning to the package comment. R=rsc CC=golang-dev https://golang.org/cl/1390041
-
- 27 May, 2010 1 commit
-
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/1326042
-
- 22 May, 2010 1 commit
-
-
Robert Griesemer authored
apply gofmt to src, misc Fixes #752. R=rsc CC=golang-dev https://golang.org/cl/1240044
-
- 13 May, 2010 1 commit
-
-
Roger Peppe authored
R=rsc, r CC=golang-dev https://golang.org/cl/1195041
-
- 28 Apr, 2010 1 commit
-
-
Christopher Wedgwood authored
R=r CC=golang-dev, rsc https://golang.org/cl/1014043
-
- 12 Apr, 2010 1 commit
-
-
Andrei Vieru authored
fmt.Printf("%b", int8(-1)) prints 64 ones instead of 8. This happens only for signed integers (int8, in16 and int32). I guess it's because of the way the conversion between integer types works. From go spec: "Conversions between integer types. If the value is a signed quantity, it is sign extended to implicit infinite precision ....". And there are several conversions to int64 and uint64 in the fmt package. This pathch solves only half of the problem. On a 32 bit system, an fmt.Printf("%b", int(-1)) should still print 64 ones. R=golang-dev, r CC=golang-dev https://golang.org/cl/891049
-
- 06 Mar, 2010 3 commits
-
-
Rob Pike authored
add tests. R=rsc, ken2, ken3 CC=golang-dev https://golang.org/cl/261041
-
Ken Thompson authored
R=r CC=golang-dev https://golang.org/cl/254043
-
Ken Thompson authored
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev https://golang.org/cl/257042
-
- 28 Feb, 2010 1 commit
-
-
Stephen Ma authored
that pad() still counts bytes, but it's currently only used for 1 byte runes. Fixes #612. R=r CC=golang-dev https://golang.org/cl/217064
-
- 26 Feb, 2010 1 commit
-
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/223059
-
- 25 Feb, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/224051
-
- 16 Feb, 2010 1 commit
-
-
Ian Lance Taylor authored
Try to avoid infinite recursion if String fails due to printing a bad type. Add test for String method with named basic types. R=r CC=golang-dev https://golang.org/cl/207102
-
- 05 Feb, 2010 1 commit
-
-
Rob Pike authored
add some tests for erroneous formats. R=rsc CC=golang-dev https://golang.org/cl/201058
-
- 01 Feb, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/197043
-
- 22 Dec, 2009 2 commits
-
-
Rob Pike authored
- use an interface {Get()} - implement Get for maps, slices - for slices, retrieves the address of the end of the array, which will give the same value for every slice of the same array. R=rsc CC=golang-dev https://golang.org/cl/179129
-
Rob Pike authored
(Also fix case sensitivity in test for PTR inside fmt_test.go) Fixes #441. R=rsc, iant CC=golang-dev https://golang.org/cl/180112
-
- 15 Dec, 2009 1 commit
-
-
Robert Griesemer authored
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 2nd set of files. R=rsc CC=golang-dev https://golang.org/cl/179067
-