tools/cmd
Rob Pike 797431e1a3 go.tools/cmd/vet: fix printf analysis for structs.
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
2013-08-02 22:52:38 +10:00
..
cover all: be more idiomatic when documenting boolean return values. 2013-07-23 10:37:43 +10:00
godoc go.tools/cmd/godoc: fix typo 2013-08-01 17:43:31 +10:00
vet go.tools/cmd/vet: fix printf analysis for structs. 2013-08-02 22:52:38 +10:00