1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00
go/internal/imports/testdata/mod
Heschi Kreinick 757ca719ca imports: rename to internal/imports
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>
2019-05-20 21:49:35 +00:00
..
example.com_v1.0.0.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
golang.org_x_text_v0.0.0-20170915032832-14c0d48ead0c.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_!q!u!o!t!e_v1.5.2.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_!q!u!o!t!e_v1.5.3-!p!r!e.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_quote_v1.5.1.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_quote_v1.5.2.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_quote_v2_v2.0.1.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_quote_v3_v3.0.0.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_sampler_v1.3.0.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
rsc.io_sampler_v1.3.1.txt imports: rename to internal/imports 2019-05-20 21:49:35 +00:00