mirror of
https://github.com/golang/go
synced 2024-11-18 22:14:56 -07:00
797431e1a3
The old code only got it right for Stringers (etc.) and a few other simple cases. But the rule used by fmt.Printf for non-Stringers is that pointers to structs print as pointers, the rest must satisfy the format verb element-wise. Thus for example struct {a int, b []byte} prints with %d and %q (sic) but not %g. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12340043 |
||
---|---|---|
.. | ||
testdata | ||
asmdecl.go | ||
assign.go | ||
atomic.go | ||
buildtag.go | ||
deadcode.go | ||
doc.go | ||
main.go | ||
method.go | ||
print.go | ||
rangeloop.go | ||
shadow.go | ||
structtag.go | ||
taglit.go | ||
types.go | ||
vet_test.go |