1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:36:11 -07:00
go/internal/imports/testdata/mod/example.com_v1.0.0.txt
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

10 lines
143 B
Plaintext

Written by hand.
Test case for module at root of domain.
-- .mod --
module example.com
-- .info --
{"Version": "v1.0.0"}
-- x.go --
package x