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.
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.