1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:34:45 -07:00
go/imports
Sameer Ajmani a1c1cf19ba imports: extend findImports to return a boolean, rename, that tells
goimports to use the package name as a local qualifier in an import.
For example, if findImports("pkg", "X") returns ("foo/bar",
rename=true), then goimports adds the import line:
  import pkg "foo/bar"
to satisfy uses of pkg.X in the file.

This change doesn't add any implementations of rename=true, though one
is sketched in a TODO.

LGTM=crawshaw
R=crawshaw, rsc
CC=bradfitz, golang-codereviews
https://golang.org/cl/76400050
2014-03-25 09:37:10 -04:00
..
fix_test.go imports: extend findImports to return a boolean, rename, that tells 2014-03-25 09:37:10 -04:00
fix.go imports: extend findImports to return a boolean, rename, that tells 2014-03-25 09:37:10 -04:00
imports.go imports: fix a case where we weren't gofmt-compatible 2014-02-07 17:03:34 -08:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: bake in the standard library again 2014-01-26 09:47:31 -08:00
sortimports_compat.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
sortimports.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
zstdlib.go imports: bake in the standard library again 2014-01-26 09:47:31 -08:00