Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / links / links.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/internal/lsp/testdata/links/links.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/internal/lsp/testdata/links/links.go
new file mode 100644 (file)
index 0000000..06ab290
--- /dev/null
@@ -0,0 +1,26 @@
+package links
+
+import (
+       "fmt" //@link(`fmt`,"https://pkg.go.dev/fmt")
+
+       "golang.org/x/tools/internal/lsp/foo" //@link(`golang.org/x/tools/internal/lsp/foo`,`https://pkg.go.dev/golang.org/x/tools/internal/lsp/foo`)
+
+       _ "database/sql" //@link(`database/sql`, `https://pkg.go.dev/database/sql`)
+)
+
+var (
+       _ fmt.Formatter
+       _ foo.StructFoo
+       _ errors.Formatter
+)
+
+// Foo function
+func Foo() string {
+       /*https://example.com/comment */ //@link("https://example.com/comment","https://example.com/comment")
+
+       url := "https://example.com/string_literal" //@link("https://example.com/string_literal","https://example.com/string_literal")
+       return url
+
+       // TODO(golang/go#1234): Link the relevant issue. //@link("golang/go#1234", "https://github.com/golang/go/issues/1234")
+       // TODO(microsoft/vscode-go#12): Another issue. //@link("microsoft/vscode-go#12", "https://github.com/microsoft/vscode-go/issues/12")
+}