mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
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>