]> Cypherpunks repositories - gostls13.git/commit
fmt: Implement pp.WriteString method
authorRajath Agasthya <rajathagasthya@gmail.com>
Sun, 20 Aug 2017 01:05:10 +0000 (18:05 -0700)
committerRob Pike <r@golang.org>
Wed, 20 Sep 2017 06:48:34 +0000 (06:48 +0000)
commit8802b188c6303b0c03f200bb1489237cc40b968e
tree516afcc80d8f292324a4cba251efe3d00caf0e92
parentfb54abe9ce3cbec6d464c238406b05502cb34eeb
fmt: Implement pp.WriteString method

This allows io.WriteString to make use of WriteString method
implemented by pp when writing a string to fmt.State.

Fixes #20786

Change-Id: Ice7a92bf303127ad87f05562217fa076f5c589ad
Reviewed-on: https://go-review.googlesource.com/61430
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/fmt_test.go
src/fmt/print.go