Skip to content
Trilha

Error catalog

E_VET_PRINTF

Printf format and arguments disagree

The printf analyzer found a format verb that does not match its argument — a %d handed a string, or a value with no verb at all.

Fix

Match the verb to the argument, or drop the argument from the format string.

fmt.Sprintf("id=%s", id) // %s for strings, %d for numbers