5 ms·
Use `goimports` as a save hook in your editor. It analyzes your code and inserts/removes import lines as needed. Other than the occasional need to fix up an a
by joeshaw 12y ago
Use `goimports` as a save hook in your editor. It analyzes your code and inserts/removes import lines as needed.
Other than the occasional need to fix up an ambiguous import that it guessed incorrectly, I haven't touched import lines in my code in a year.