blob: 381a11acee89bf377a17bc858c499543e5f00e4f [file] [log] [blame]
-- PosSum-definition --
godef/a/random.go:24:15-18: defined here as ```go
func (*Pos).Sum() int
```
[`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Pos.Sum)
-- PosSum-definition-json --
{
"span": {
"uri": "file://godef/a/random.go",
"start": {
"line": 24,
"column": 15,
"offset": 413
},
"end": {
"line": 24,
"column": 18,
"offset": 416
}
},
"description": "```go\nfunc (*Pos).Sum() int\n```\n\n[`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Pos.Sum)"
}
-- PosSum-hoverdef --
```go
func (*Pos).Sum() int
```
[`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Pos.Sum)
-- PosX-definition --
godef/a/random.go:13:2-3: defined here as ```go
field x int
```
\@mark\(PosX, \"x\"\),mark\(PosY, \"y\"\)
-- PosX-definition-json --
{
"span": {
"uri": "file://godef/a/random.go",
"start": {
"line": 13,
"column": 2,
"offset": 187
},
"end": {
"line": 13,
"column": 3,
"offset": 188
}
},
"description": "```go\nfield x int\n```\n\n\\@mark\\(PosX, \\\"x\\\"\\),mark\\(PosY, \\\"y\\\"\\)"
}
-- PosX-hoverdef --
```go
field x int
```
\@mark\(PosX, \"x\"\),mark\(PosY, \"y\"\)
-- RandomParamY-definition --
godef/a/random.go:8:14-15: defined here as ```go
var y int
```
-- RandomParamY-definition-json --
{
"span": {
"uri": "file://godef/a/random.go",
"start": {
"line": 8,
"column": 14,
"offset": 79
},
"end": {
"line": 8,
"column": 15,
"offset": 80
}
},
"description": "```go\nvar y int\n```"
}
-- RandomParamY-hoverdef --
```go
var y int
```
-- TypField-definition --
godef/a/random.go:17:18-23: defined here as ```go
field field string
```
-- TypField-definition-json --
{
"span": {
"uri": "file://godef/a/random.go",
"start": {
"line": 17,
"column": 18,
"offset": 292
},
"end": {
"line": 17,
"column": 23,
"offset": 297
}
},
"description": "```go\nfield field string\n```"
}
-- TypField-hoverdef --
```go
field field string
```