News for hackers. Stuff that matters.
Re:I Love Go; I Hate Go by themihai on Tuesday August 02, 2016 @11:48AM (#12210778)
Well, that's the point! If you don't want inaccurate imports and just want to remove unused imports you can comment that line. A better option would be to use an additional argument to that function (removeOnly bool) and perhaps a flag on the executable so that you can choose when to use the removeOnly option. Either way the automatic imports and even the removeOnly option alone requires various trade-offs(i.e. accuracy, compiler speed etc) and this is another reason why such features are better developed in stand alone/external tools.

There are no comments on this comment yet.