Adds an Imports field to packageInfo with the imports used by sibling files, and uses it preferentially if it matches a missing import. Example: if foo/foo.go imports "local/log", it's a reasonable assumption that foo/bar.go will also want "local/log" instead of "log". Change-Id: Ifb504ed5e00ff18459f19d8598cc2c94099ae563 Reviewed-on: https://go-review.googlesource.com/43454 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
|---|---|---|
| .. | ||
| fastwalk.go | ||
| fastwalk_dirent_fileno.go | ||
| fastwalk_dirent_ino.go | ||
| fastwalk_portable.go | ||
| fastwalk_test.go | ||
| fastwalk_unix.go | ||
| fix.go | ||
| fix_test.go | ||
| imports.go | ||
| mkindex.go | ||
| mkstdlib.go | ||
| sortimports.go | ||
| zstdlib.go | ||