]> Cypherpunks repositories - gostls13.git/commit
fmt: debugging formats for characters: %+q %#U
authorRob Pike <r@golang.org>
Sat, 11 Jun 2011 00:03:02 +0000 (00:03 +0000)
committerRob Pike <r@golang.org>
Sat, 11 Jun 2011 00:03:02 +0000 (00:03 +0000)
commitd152fe74e18032cf5678c29ec9f5f56bbc6cc5bb
tree8a41ff06dbfe62232f4af33908a50197be2e5bfb
parent4b1170d2b1985a7530a559b9ef3dfdd350fb422e
fmt: debugging formats for characters: %+q %#U
%+q uses strconv.Quote[Rune]ToASCII, guaranteeing ASCII-only output.
%#U a quoted character if the rune is printable: 'x'=U+0078; otherwise
it's as before: U+000A.

R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/4589047
src/pkg/fmt/doc.go
src/pkg/fmt/fmt_test.go
src/pkg/fmt/format.go
src/pkg/fmt/print.go