1. 04 Oct, 2010 1 commit
  2. 01 Oct, 2010 1 commit
  3. 24 Sep, 2010 2 commits
  4. 22 Sep, 2010 1 commit
  5. 04 Sep, 2010 1 commit
  6. 19 Aug, 2010 1 commit
  7. 16 Aug, 2010 1 commit
  8. 13 Aug, 2010 2 commits
  9. 29 Jul, 2010 1 commit
  10. 28 Jul, 2010 1 commit
  11. 12 Jul, 2010 1 commit
  12. 28 Jun, 2010 1 commit
  13. 21 Jun, 2010 1 commit
  14. 20 Jun, 2010 1 commit
  15. 15 Jun, 2010 2 commits
    • Rob Pike's avatar
      fmt.Printf: write tests for %T. · 177746ba
      Rob Pike authored
      Fix a bug that caused it to ignore field widths.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/1704041
      177746ba
    • Rob Pike's avatar
      fmt.Print*: reimplement to switch on type first. · d482c163
      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
      d482c163
  16. 03 Jun, 2010 1 commit
  17. 02 Jun, 2010 2 commits
  18. 31 May, 2010 1 commit
  19. 28 May, 2010 1 commit
  20. 27 May, 2010 1 commit
  21. 22 May, 2010 1 commit
  22. 13 May, 2010 1 commit
  23. 28 Apr, 2010 1 commit
  24. 12 Apr, 2010 1 commit
    • Andrei Vieru's avatar
      fmt format verb %b bug · 1ab15fac
      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
      1ab15fac
  25. 06 Mar, 2010 3 commits
  26. 28 Feb, 2010 1 commit
  27. 26 Feb, 2010 1 commit
  28. 25 Feb, 2010 1 commit
  29. 16 Feb, 2010 1 commit
  30. 05 Feb, 2010 1 commit
  31. 01 Feb, 2010 1 commit
  32. 22 Dec, 2009 2 commits
  33. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · 1c729599
      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
      1c729599