aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/godef/a/h.go.golden
blob: 7cef9ee967a956fa7649103d4ba4a99434589491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
-- arrD-hoverdef --
```go
field d int
```

d field

-- arrE-hoverdef --
```go
field e struct{f int}
```

e nested struct

-- arrF-hoverdef --
```go
field f int
```

f field of nested struct

-- complexH-hoverdef --
```go
field h int
```

h field

-- complexI-hoverdef --
```go
field i struct{j int}
```

i nested struct

-- complexJ-hoverdef --
```go
field j int
```

j field of nested struct

-- mapStructKeyX-hoverdef --
```go
field x []string
```

X key field

-- mapStructKeyY-hoverdef --
```go
field y string
```

Y key field

-- mapStructValueX-hoverdef --
```go
field x string
```

X value field

-- nestedMap-hoverdef --
```go
field m map[string]float64
```

nested map

-- nestedNumber-hoverdef --
```go
field number int64
```

nested number

-- nestedString-hoverdef --
```go
field str string
```

nested string

-- openMethod-hoverdef --
```go
func (interface).open() error
```

open method comment

-- returnX-hoverdef --
```go
field x int
```

X coord

-- returnY-hoverdef --
```go
field y int
```

Y coord

-- structA-hoverdef --
```go
field a int
```

a field

-- structB-hoverdef --
```go
field b struct{c int}
```

b nested struct

-- structC-hoverdef --
```go
field c int
```

c field of nested struct

-- testDescription-hoverdef --
```go
field desc string
```

test description

-- testInput-hoverdef --
```go
field in map[string][]struct{key string; value interface{}}
```

test input

-- testInputKey-hoverdef --
```go
field key string
```

test key

-- testInputValue-hoverdef --
```go
field value interface{}
```

test value

-- testResultValue-hoverdef --
```go
field value int
```

expected test value