]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: introduce printer for internal formatting; use in jconv
authorRobert Griesemer <gri@golang.org>
Thu, 25 Aug 2016 04:47:58 +0000 (21:47 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 26 Aug 2016 22:38:36 +0000 (22:38 +0000)
commitdc2a0d59a2b9b5dd87065e6227ca112839cd389b
tree3c5028d48b2d83375f40ced67451a3ee34b14d9b
parentc85b77c22b78c801d18a456a8f242c007a520217
cmd/compile: introduce printer for internal formatting; use in jconv

Starting point for uniform use of printer in fmt.go.
It provides a hook to store additional state (and
remove global variables) and should also be more
efficient and cleaner than the mix of string concatenation
and bytes.Buffer use we have now.

Change-Id: I72de14b01850cca32d407a1cb16c894179ea8848
Reviewed-on: https://go-review.googlesource.com/27916
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/fmt.go