github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/implements-json/main.golden (about) 1 -------- @implements E -------- 2 { 3 "type": { 4 "name": "implements-json.E", 5 "pos": "testdata/src/implements-json/main.go:10:6", 6 "kind": "interface" 7 } 8 } 9 -------- @implements F -------- 10 { 11 "type": { 12 "name": "implements-json.F", 13 "pos": "testdata/src/implements-json/main.go:12:6", 14 "kind": "interface" 15 }, 16 "to": [ 17 { 18 "name": "*implements-json.C", 19 "pos": "testdata/src/implements-json/main.go:21:6", 20 "kind": "pointer" 21 }, 22 { 23 "name": "implements-json.D", 24 "pos": "testdata/src/implements-json/main.go:22:6", 25 "kind": "struct" 26 }, 27 { 28 "name": "implements-json.FG", 29 "pos": "testdata/src/implements-json/main.go:16:6", 30 "kind": "interface" 31 } 32 ] 33 } 34 -------- @implements FG -------- 35 { 36 "type": { 37 "name": "implements-json.FG", 38 "pos": "testdata/src/implements-json/main.go:16:6", 39 "kind": "interface" 40 }, 41 "to": [ 42 { 43 "name": "*implements-json.D", 44 "pos": "testdata/src/implements-json/main.go:22:6", 45 "kind": "pointer" 46 } 47 ], 48 "from": [ 49 { 50 "name": "implements-json.F", 51 "pos": "testdata/src/implements-json/main.go:12:6", 52 "kind": "interface" 53 } 54 ] 55 } 56 -------- @implements slice -------- 57 { 58 "type": { 59 "name": "[]int", 60 "pos": "-", 61 "kind": "slice" 62 } 63 } 64 -------- @implements C -------- 65 { 66 "type": { 67 "name": "implements-json.C", 68 "pos": "testdata/src/implements-json/main.go:21:6", 69 "kind": "basic" 70 }, 71 "fromptr": [ 72 { 73 "name": "implements-json.F", 74 "pos": "testdata/src/implements-json/main.go:12:6", 75 "kind": "interface" 76 } 77 ] 78 } 79 -------- @implements starC -------- 80 { 81 "type": { 82 "name": "*implements-json.C", 83 "pos": "testdata/src/implements-json/main.go:21:6", 84 "kind": "pointer" 85 }, 86 "from": [ 87 { 88 "name": "implements-json.F", 89 "pos": "testdata/src/implements-json/main.go:12:6", 90 "kind": "interface" 91 } 92 ] 93 } 94 -------- @implements D -------- 95 { 96 "type": { 97 "name": "implements-json.D", 98 "pos": "testdata/src/implements-json/main.go:22:6", 99 "kind": "struct" 100 }, 101 "from": [ 102 { 103 "name": "implements-json.F", 104 "pos": "testdata/src/implements-json/main.go:12:6", 105 "kind": "interface" 106 } 107 ], 108 "fromptr": [ 109 { 110 "name": "implements-json.FG", 111 "pos": "testdata/src/implements-json/main.go:16:6", 112 "kind": "interface" 113 } 114 ] 115 } 116 -------- @implements starD -------- 117 { 118 "type": { 119 "name": "*implements-json.D", 120 "pos": "testdata/src/implements-json/main.go:22:6", 121 "kind": "pointer" 122 }, 123 "from": [ 124 { 125 "name": "implements-json.F", 126 "pos": "testdata/src/implements-json/main.go:12:6", 127 "kind": "interface" 128 }, 129 { 130 "name": "implements-json.FG", 131 "pos": "testdata/src/implements-json/main.go:16:6", 132 "kind": "interface" 133 } 134 ] 135 }