I have a question about golangci-lint. The linter returns me for something like:
type outputFormat string
const (
formatNone outputFormat = ""
formatText = "TEXT"
formatJSON = "JSON"
)
an error like:
only the first constant in this group has an explicit type (staticcheck)
formatNone outputFormat = ""
But what's the problem about it? In https://go101.org/article/constants-and-variables.html they describe in chapter Autocomplete in constant declarations that incomplete constants will be recognized and filled.
I did not find any reference which tells me to avoid using incomplete constant definitions.
Can somebody explain to me, what's the matter behind that?