mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
69111344d4
This adds a link to documentation to the hover contents for the current symbol if it is exported. Updates golang/go#34240 Change-Id: I19c66e91e46f79284bfd0006c53f518eda4edef7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/200604 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
25 lines
666 B
Plaintext
25 lines
666 B
Plaintext
-- funccgoexample-definition --
|
|
cgo/declarecgo.go:17:6-13: defined here as func cgo.Example()
|
|
[Example on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/cgo#Example)
|
|
-- funccgoexample-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://cgo/declarecgo.go",
|
|
"start": {
|
|
"line": 17,
|
|
"column": 6,
|
|
"offset": 153
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 13,
|
|
"offset": 160
|
|
}
|
|
},
|
|
"description": "func cgo.Example()\n[Example on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/cgo#Example)"
|
|
}
|
|
|
|
-- funccgoexample-hover --
|
|
func cgo.Example()
|
|
[Example on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/cgo#Example)
|