Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: check for verb errors for fmt.Scanf #8170
What does 'go version' print? go version go1.2.2 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Printf("test %d", f) where f is float is deemed a type error 2. Scanf("test %d", f) where f is float passes all type checking 3. http://play.golang.org/p/3OkpJ-RQeU 4. code sample will compile and pass go vet but fail at runtime What happened? Simple demo program using fmt.Scanf compiles and passes go vet check but error found at runtime. Analogous program using fmt.Printf with same error does not pass go vet check. What should have happened instead? go vet should produce similar checks in fmt.Scanf as is does for fmt.Printf Please provide any additional information below.