Update .bashrc
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / internal / lsp / testdata / godef / a / d.go.golden
1 -- Member-definition --
2 godef/a/d.go:6:2-8: defined here as ```go
3 field Member string
4 ```
5
6 [`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Member)
7
8 \@Member
9 -- Member-definition-json --
10 {
11         "span": {
12                 "uri": "file://godef/a/d.go",
13                 "start": {
14                         "line": 6,
15                         "column": 2,
16                         "offset": 87
17                 },
18                 "end": {
19                         "line": 6,
20                         "column": 8,
21                         "offset": 93
22                 }
23         },
24         "description": "```go\nfield Member string\n```\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)\n\n\\@Member"
25 }
26
27 -- Member-hover --
28 ```go
29 field Member string
30 ```
31
32 [`(a.Thing).Member` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Member)
33
34 \@Member
35 -- Method-definition --
36 godef/a/d.go:15:16-22: defined here as ```go
37 func (Thing).Method(i int) string
38 ```
39
40 [`(a.Thing).Method` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Method)
41 -- Method-definition-json --
42 {
43         "span": {
44                 "uri": "file://godef/a/d.go",
45                 "start": {
46                         "line": 15,
47                         "column": 16,
48                         "offset": 216
49                 },
50                 "end": {
51                         "line": 15,
52                         "column": 22,
53                         "offset": 222
54                 }
55         },
56         "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)"
57 }
58
59 -- Method-hover --
60 ```go
61 func (Thing).Method(i int) string
62 ```
63
64 [`(a.Thing).Method` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing.Method)
65 -- Other-definition --
66 godef/a/d.go:9:5-10: defined here as ```go
67 var Other Thing
68 ```
69
70 [`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)
71
72 \@Other
73 -- Other-definition-json --
74 {
75         "span": {
76                 "uri": "file://godef/a/d.go",
77                 "start": {
78                         "line": 9,
79                         "column": 5,
80                         "offset": 118
81                 },
82                 "end": {
83                         "line": 9,
84                         "column": 10,
85                         "offset": 123
86                 }
87         },
88         "description": "```go\nvar Other Thing\n```\n\n[`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)\n\n\\@Other"
89 }
90
91 -- Other-hover --
92 ```go
93 var Other Thing
94 ```
95
96 [`a.Other` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Other)
97
98 \@Other
99 -- Thing-definition --
100 godef/a/d.go:5:6-11: defined here as ```go
101 type Thing struct {
102         Member string //@Member
103 }
104 ```
105
106 [`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing)
107 -- Thing-definition-json --
108 {
109         "span": {
110                 "uri": "file://godef/a/d.go",
111                 "start": {
112                         "line": 5,
113                         "column": 6,
114                         "offset": 62
115                 },
116                 "end": {
117                         "line": 5,
118                         "column": 11,
119                         "offset": 67
120                 }
121         },
122         "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)"
123 }
124
125 -- Thing-hover --
126 ```go
127 type Thing struct {
128         Member string //@Member
129 }
130 ```
131
132 [`a.Thing` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Thing)
133 -- Things-definition --
134 godef/a/d.go:11:6-12: defined here as ```go
135 func Things(val []string) []Thing
136 ```
137
138 [`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Things)
139 -- Things-definition-json --
140 {
141         "span": {
142                 "uri": "file://godef/a/d.go",
143                 "start": {
144                         "line": 11,
145                         "column": 6,
146                         "offset": 145
147                 },
148                 "end": {
149                         "line": 11,
150                         "column": 12,
151                         "offset": 151
152                 }
153         },
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)"
155 }
156
157 -- Things-hover --
158 ```go
159 func Things(val []string) []Thing
160 ```
161
162 [`a.Things` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#Things)
163 -- a-hover --
164 Package a is a package for testing go to definition\.