When vet reports a printf problem such as this one:
fmt.Printf("%d", func() { ... }) // arg in printf call is a function value, not a function call
it prints out the entire body of the function literal, which can be quite long.
For example, given the program at https://play.golang.org/p/f8W0zpISww, vet prints
% go vet ~/a.go
../../../../a.go:6: arg func() {
println("blah")
println("blah")
println("blah")
... dozens more lines...
println("blah")
println("blah")
println("blah")
} in printf call is a function value, not a function call
Perhaps it should not print the function body at all.
When vet reports a printf problem such as this one:
it prints out the entire body of the function literal, which can be quite long.
For example, given the program at https://play.golang.org/p/f8W0zpISww, vet prints
Perhaps it should not print the function body at all.