Intermediate Go (Golang)
Q80 / 100

What is the go vet tool specifically checking for with printf verbs?

Correct! Well done.

Incorrect.

The correct answer is B) Detecting mismatches between printf format verbs and argument types, e.g., using %d for a string

B

Correct Answer

Detecting mismatches between printf format verbs and argument types, e.g., using %d for a string

Explanation

fmt.Printf("%d", "hello") is caught by go vet as a vet error. It also catches unreachable code, suspicious type assertions, and mutex copies.

Progress
80/100