Here is a small program to reproduce the issue:
package main
func log(fmt string, args ...interface{}) {}
func main() {
log("%d", 42)
}
Write it in, say, vetfail.go, then run go vet ./vetfail.go.
Expected output: nothing
Actual output:
vetfail.go:6: possible formatting directive in log call
exit status 1
This should fail with other functions in this
list: https://github.com/golang/tools/blob/578c521fc29d6b5e17e052d4382ef72664fc1e2d/cmd/vet/print.go#L73-L80
-- Baptiste
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.