dedupimport icon indicating copy to clipboard operation
dedupimport copied to clipboard

astutil.DeleteNamedImport could replace most of the de-duplication code

Open nishanths opened this issue 7 years ago • 1 comments

Package astutil has a DeleteNamedImport function, which looks like it could be used to replace most of the de-duplication code in this command.

https://godoc.org/golang.org/x/tools/go/ast/astutil#DeleteNamedImport

nishanths avatar Apr 20 '19 13:04 nishanths

Along with astutil.Add[Named]Import.

nishanths avatar May 22 '20 12:05 nishanths