GoPLS Viewer

Home|gopls/cmd/guru/testdata/src/implements-json/main.go
1package main
2
3// Tests of 'implements' query, -output=json.
4// See go.tools/guru/guru_test.go for explanation.
5// See implements.golden for expected query results.
6
7func main() {
8}
9
10type E interface{} // @implements E "E"
11
12type F interface { // @implements F "F"
13    f()
14}
15
16type FG interface { // @implements FG "FG"
17    f()
18    g() []int // @implements slice "..int"
19}
20
21type C int // @implements C "C"
22type D struct{}
23
24func (c *Cf() {} // @implements starC ".C"
25func (d Df()  {} // @implements D "D"
26
27func (d *Dg() []int { return nil } // @implements starD ".D"
28
MembersX
D.f
E
F
D
C.f.c
C.f
D.f.d
D.g.d
D.g
main
FG
C
Members
X