gopls/internal/test/marker/testdata/references/imports.txt
raw| 1 | Test of references to local package names (imports). |
| 2 | |
| 3 | -- go.mod -- |
| 4 | module example.com |
| 5 | go 1.12 |
| 6 | |
| 7 | -- a/a.go -- |
| 8 | package a |
| 9 | |
| 10 | import "os" //@loc(osDef, `"os"`), refs("os", osDef, osUse) |
| 11 | |
| 12 | import fmt2 "fmt" //@loc(fmt2Def, `fmt2`), refs("fmt2", fmt2Def, fmt2Use) |
| 13 | |
| 14 | func _() { |
| 15 | os.Getwd() //@loc(osUse, "os") |
| 16 | fmt2.Println() //@loc(fmt2Use, "fmt2") |
| 17 | } |