News for hackers. Stuff that matters.
Re:Go: What We Got Right, What We Got Wrong by alainx277 on Friday January 05, 2024 @08:26PM (#38887358)
The OP mentions that the reimport is the problem (in response to your tooling suggestion). If you comment out code while testing the imports are auto-removed. When you uncomment you need add the correct imports again.
Re:Go: What We Got Right, What We Got Wrong by cwbriscoe on Saturday January 06, 2024 @01:50PM (#38894061)
goimports re-adds them when you uncomment the code. Unless it is ambiguous on which lib to import which doesn't happen very often.