1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:55:01 -07:00
go/src/fmt
Martin Möhrmann 2ecaaf18f9 fmt: always handle special methods if print operand is a reflect.Value
Check for and call the special printing and format methods such as String
at printing depth 0 when printing the concrete value of a reflect.Value.

Fixes: #16015

Change-Id: I23bd2927255b60924e5558321e98dd4a95e11c4c
Reviewed-on: https://go-review.googlesource.com/30753
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Martin Möhrmann <martisch@uos.de>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-10-18 10:50:26 +00:00
..
doc.go fmt: fix documention for %#v on uints 2016-10-18 06:14:31 +00:00
export_test.go fmt: add tests for parsenum 2016-10-04 21:00:35 +00:00
fmt_test.go fmt: always handle special methods if print operand is a reflect.Value 2016-10-18 10:50:26 +00:00
format.go
print.go fmt: always handle special methods if print operand is a reflect.Value 2016-10-18 10:50:26 +00:00
scan_test.go fmt: document and adjust Scanf space handling to eliminate a few paradoxes 2016-10-07 03:46:50 +00:00
scan.go fmt: document and adjust Scanf space handling to eliminate a few paradoxes 2016-10-07 03:46:50 +00:00
stringer_test.go