Ir para o conteúdo
Trilha

Catálogo de erros

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.

Conserto

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