1
0
mirror of https://github.com/golang/go synced 2024-11-05 18:36:10 -07:00
go/cmd/goimports
Heschi Kreinick 0133cac317 cmd/goimports: reuse cached state
The internal imports API allows the user to control the lifetime of
caches, via the ProcessEnv object. Change the goimports command to use
the same cache for its lifetime. This should speed up goimports -w *.go
dramatically in cases where imports need to be added.

Change-Id: I01e3531ad53b038896435474ac9a8be97d5f3c10
Reviewed-on: https://go-review.googlesource.com/c/tools/+/175448
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-05-20 21:49:40 +00:00
..
doc.go cmd/goimports: update Emacs install instructions 2018-11-30 05:20:23 +00:00
goimports_gc.go cmd/goimports: work around lack of runtime/trace in gccgo 2016-08-13 05:07:58 +00:00
goimports_not_gc.go cmd/goimports: work around lack of runtime/trace in gccgo 2016-08-13 05:07:58 +00:00
goimports.go cmd/goimports: reuse cached state 2019-05-20 21:49:40 +00:00