cmd/vet: handle constant string addition in printf formats #4599
Labels
Milestone
Comments
An example: C:\DEV\go> cat go-issue-4599.go package main import ( "log" "os" ) func main() { fn := "testfile.txt" f, err := os.Open(fn) if err != nil { log.Fatalf("Error %s opening"+ " file", err) } defer f.Close() } C:\DEV\go> go tool vet -v go-issue-4599.go Checking file go-issue-4599.go go-issue-4599.go:12:3: can't check non-literal format in call to Fatalf C:\DEV\go> -- Johan |
This issue was closed by revision 87c3c1b. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by johan.samyn:
The text was updated successfully, but these errors were encountered: