blob: 47723b0453cecc2c22d72053d01c97aa083b79ea [file] [log] [blame]
-- Member-definition --
godef/a/d.go:6:2-8: defined here as ```go
field Member string
```
\@Member
[`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Member)
-- Member-definition-json --
{
"span": {
"uri": "file://godef/a/d.go",
"start": {
"line": 6,
"column": 2,
"offset": 90
},
"end": {
"line": 6,
"column": 8,
"offset": 96
}
},
"description": "```go\nfield Member string\n```\n\n\\@Member\n\n[`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Member)"
}
-- Member-hoverdef --
```go
field Member string
```
\@Member
[`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Member)
-- Method-definition --
godef/a/d.go:15:16-22: defined here as ```go
func (Thing).Method(i int) string
```
[`(a.Thing).Method` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Method)
-- Method-definition-json --
{
"span": {
"uri": "file://godef/a/d.go",
"start": {
"line": 15,
"column": 16,
"offset": 219
},
"end": {
"line": 15,
"column": 22,
"offset": 225
}
},
"description": "```go\nfunc (Thing).Method(i int) string\n```\n\n[`(a.Thing).Method` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Method)"
}
-- Method-hoverdef --
```go
func (Thing).Method(i int) string
```
[`(a.Thing).Method` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Method)
-- Other-definition --
godef/a/d.go:9:5-10: defined here as ```go
var Other Thing
```
\@Other
[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)
-- Other-definition-json --
{
"span": {
"uri": "file://godef/a/d.go",
"start": {
"line": 9,
"column": 5,
"offset": 121
},
"end": {
"line": 9,
"column": 10,
"offset": 126
}
},
"description": "```go\nvar Other Thing\n```\n\n\\@Other\n\n[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)"
}
-- Other-hoverdef --
```go
var Other Thing
```
\@Other
[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)
-- Thing-definition --
godef/a/d.go:5:6-11: defined here as ```go
type Thing struct {
Member string //@Member
}
```
[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing)
-- Thing-definition-json --
{
"span": {
"uri": "file://godef/a/d.go",
"start": {
"line": 5,
"column": 6,
"offset": 65
},
"end": {
"line": 5,
"column": 11,
"offset": 70
}
},
"description": "```go\ntype Thing struct {\n\tMember string //@Member\n}\n```\n\n[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing)"
}
-- Thing-hoverdef --
```go
type Thing struct {
Member string //@Member
}
```
[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing)
-- Things-definition --
godef/a/d.go:11:6-12: defined here as ```go
func Things(val []string) []Thing
```
[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Things)
-- Things-definition-json --
{
"span": {
"uri": "file://godef/a/d.go",
"start": {
"line": 11,
"column": 6,
"offset": 148
},
"end": {
"line": 11,
"column": 12,
"offset": 154
}
},
"description": "```go\nfunc Things(val []string) []Thing\n```\n\n[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Things)"
}
-- Things-hoverdef --
```go
func Things(val []string) []Thing
```
[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Things)
-- a-hoverdef --
Package a is a package for testing go to definition\.