4 ms·
goimports will remove imports when they are no longer referenced in the file. So, the otherwise manual step of removing them is automated for you. Highlightin
by zenlikethat 10y ago
goimports will remove imports when they are no longer referenced in the file. So, the otherwise manual step of removing them is automated for you.
Highlighting dead code is not a trivial matter, at least for anything that could be referenced external to the module.