2019-08-14 15:25:47 -06:00
|
|
|
package unimported
|
|
|
|
|
|
|
|
func _() {
|
2019-10-30 14:59:29 -06:00
|
|
|
//@unimported("", bytes, context, cryptoslashrand, time, unsafe, externalpackage)
|
2019-11-01 15:59:28 -06:00
|
|
|
// container/ring is extremely unlikely to be imported by anything, so shouldn't have type information.
|
|
|
|
ring.Ring //@unimported("Ring", ringring)
|
|
|
|
signature.Foo //@unimported("Foo", signaturefoo)
|
2019-08-14 15:25:47 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Create markers for unimported std lib packages. Only for use by this test.
|
|
|
|
/* bytes */ //@item(bytes, "bytes", "\"bytes\"", "package")
|
|
|
|
/* context */ //@item(context, "context", "\"context\"", "package")
|
|
|
|
/* rand */ //@item(cryptoslashrand, "rand", "\"crypto/rand\"", "package")
|
2019-10-04 13:38:18 -06:00
|
|
|
/* time */ //@item(time, "time", "\"time\"", "package")
|
2019-10-30 14:59:29 -06:00
|
|
|
/* unsafe */ //@item(unsafe, "unsafe", "\"unsafe\"", "package")
|
2019-11-01 15:59:28 -06:00
|
|
|
/* pkg */ //@item(externalpackage, "pkg", "\"example.com/extramodule/pkg\"", "package")
|
2019-11-01 11:50:21 -06:00
|
|
|
|
2019-11-01 15:59:28 -06:00
|
|
|
/* ring.Ring */ //@item(ringring, "Ring", "(from \"container/ring\")", "var")
|
|
|
|
|
|
|
|
/* signature.Foo */ //@item(signaturefoo, "Foo", "func(a string, b int) (c bool) (from \"golang.org/x/tools/internal/lsp/signature\")", "func")
|