mirror of
https://github.com/golang/go
synced 2024-11-06 04:36:15 -07:00
757ca719ca
For various reasons we need an internal-facing imports API. Move imports to internal/imports, leaving behind a small wrapper package. The wrapper package captures the globals at time of call into the options struct. Also converts the last goimports tests to use the test helpers, and fixes go/packages in module mode to work with empty modules, which was necessary to get those last tests converted. Change-Id: Ib1212c67908741a1800b992ef1935d563c6ade32 Reviewed-on: https://go-review.googlesource.com/c/tools/+/175437 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
example.com_v1.0.0.txt | ||
golang.org_x_text_v0.0.0-20170915032832-14c0d48ead0c.txt | ||
rsc.io_!q!u!o!t!e_v1.5.2.txt | ||
rsc.io_!q!u!o!t!e_v1.5.3-!p!r!e.txt | ||
rsc.io_quote_v1.5.1.txt | ||
rsc.io_quote_v1.5.2.txt | ||
rsc.io_quote_v2_v2.0.1.txt | ||
rsc.io_quote_v3_v3.0.0.txt | ||
rsc.io_sampler_v1.3.0.txt | ||
rsc.io_sampler_v1.3.1.txt |