blob: 3d7d8979771325e8689fcbeeff433a38d7d4ee8e [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/lsptests/godef/a#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\n[`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Thing.Member)"
}
-- Member-hoverdef --
```go
field Member string
```
@Member
[`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Thing.Member)
-- Other-definition --
godef/a/d.go:9:5-10: defined here as ```go
var a.Other a.Thing
```
@Other
[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#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 a.Other a.Thing\n```\n\n@Other\n\n\n[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Other)"
}
-- Other-hoverdef --
```go
var a.Other a.Thing
```
@Other
[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Other)
-- Thing-definition --
godef/a/d.go:5:6-11: defined here as ```go
type Thing struct {
Member string //@Member
}
func (a.Thing).Method(i int) string
func (*a.Thing).Method2(i int, j int) (error, string)
func (a.Thing).Method3()
```
[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#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\nfunc (a.Thing).Method(i int) string\nfunc (*a.Thing).Method2(i int, j int) (error, string)\nfunc (a.Thing).Method3()\n```\n\n[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Thing)"
}
-- Thing-hoverdef --
```go
type Thing struct {
Member string //@Member
}
func (a.Thing).Method(i int) string
func (*a.Thing).Method2(i int, j int) (error, string)
func (a.Thing).Method3()
```
[`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Thing)
-- Things-definition --
godef/a/d.go:11:6-12: defined here as ```go
func a.Things(val []string) []a.Thing
```
[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#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 a.Things(val []string) []a.Thing\n```\n\n[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Things)"
}
-- Things-hoverdef --
```go
func a.Things(val []string) []a.Thing
```
[`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/lsptests/godef/a#Things)
-- eInt-hoverdef --
```go
var x int
```
-- eInterface-hoverdef --
```go
var x interface{}
```
-- eString-hoverdef --
```go
var x string
```