1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:14:47 -07:00
go/imports
David R. Jenni e852fdd89f go/ast/astutil: add function DeleteNamedImport.
DeleteNamedImport deletes the import with a given
name and path from a parsed file, if present.

imports uses this function to delete named imports.

Fixes golang/go#8149.

Change-Id: I84539d5627191c45f06db2d008507aee4d3b1eb2
Reviewed-on: https://go-review.googlesource.com/19951
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-26 17:37:10 +00:00
..
fix_test.go go/ast/astutil: add function DeleteNamedImport. 2016-02-26 17:37:10 +00:00
fix.go go/ast/astutil: add function DeleteNamedImport. 2016-02-26 17:37:10 +00:00
imports.go imports: add support for vendor directories 2016-02-18 16:47:46 +00:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: update static stdlib index to go1.5 2015-09-15 05:17:18 +00:00
sortimports.go imports: Remove ancient Go 1.1 compatibility indirections. 2015-12-14 00:47:31 +00:00
zstdlib.go imports: update static stdlib index to go1.5 2015-09-15 05:17:18 +00:00