]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: unexported Stringer and error fields cannot be formatted
authorAliaksandr Valialkin <valyala@gmail.com>
Mon, 5 Jun 2017 10:02:32 +0000 (13:02 +0300)
committerRob Pike <r@golang.org>
Tue, 29 Aug 2017 11:59:45 +0000 (11:59 +0000)
commit6959087b1cf7cdb5b5e714f321b01a47cdf2ac18
tree52c51e68b25e1c2853f7785660544638a7505291
parentc3189cee717a47dd7936d9f82904db72b28293f6
cmd/vet: unexported Stringer and error fields cannot be formatted

According to CL 31817, fmt cannot invoke String or Error methods
on unexported struct fields.

Fixes #17798.

Change-Id: I0d516577298bc36daa9a94313c3874d64dc079e6
Reviewed-on: https://go-review.googlesource.com/44831
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/testdata/print.go
src/cmd/vet/types.go