7 ms·
Go is very fast to lint. Having linter to check whether your switch statement is exhaustive is a good idea regardless.
by rplnt 5y ago
Go is very fast to lint. Having linter to check whether your switch statement is exhaustive is a good idea regardless.
- woah 5y agoThat's irrelevant to the task at hand. The linter can't tell you if your type switch can handle every `interface{}` that might be passed into it some day.