1-------- @describe pkgdecl -------- 2definition of package "describe" 3 type C int 4 method (*C) f() 5 type D struct{...} 6 method (D) f() 7 type I interface{f()} 8 method (I) f() 9 const c untyped int = 0 10 type cake float64 11 var global *string 12 func main func() 13 func newD func() D 14 const pi untyped float = 3.141 15 const pie cake = 3.141 16 17-------- @describe badimport1 -------- 18import of package "nosuchpkg" 19 20-------- @describe badimport2 -------- 21reference to package "nosuchpkg" 22 23-------- @describe unsafe -------- 24import of package "unsafe" 25 builtin Alignof 26 builtin Offsetof 27 type Pointer unsafe.Pointer 28 builtin Sizeof 29 30-------- @describe type-ref-builtin -------- 31reference to built-in type float64 32 33-------- @describe const-ref-iota -------- 34reference to const iota untyped int of value 0 35 36-------- @describe const-def-pi -------- 37definition of const pi untyped float of value 3.141 38 39-------- @describe const-def-pie -------- 40definition of const pie cake of value 3.141 41Named types: 42 type cake defined here 43 44-------- @describe const-ref-pi -------- 45reference to const pi untyped float of value 3.141 46defined here 47 48-------- @describe func-def-main -------- 49definition of func main() 50 51-------- @describe func-ref-main -------- 52reference to func main() 53defined here 54 55-------- @describe func-ref-*C.f -------- 56reference to method func (*C).f() 57defined here 58 59-------- @describe func-ref-D.f -------- 60reference to method func (D).f() 61defined here 62 63-------- @describe func-ref-I.f -------- 64reference to interface method func (I).f() 65defined here 66 67-------- @describe type-D -------- 68reference to type D (size 32, align 8) 69defined as struct{Field int; AnotherField string; ThirdField C} 70Methods: 71 method (D) f() 72Fields: 73 Field int 74 AnotherField string 75 ThirdField C 76 77-------- @describe type-I -------- 78reference to type I (size 16, align 8) 79defined as interface{f()} 80Methods: 81 method (I) f() 82 83-------- @describe func-ref-d.f -------- 84reference to method func (D).f() 85defined here 86 87-------- @describe func-ref-i.f -------- 88reference to interface method func (I).f() 89defined here 90 91-------- @describe slice-of-D -------- 92definition of var slice []D 93Named types: 94 type D defined here 95 96-------- @describe ptr-with-nonptr-methods -------- 97definition of var dptr *D 98Methods: 99 method (*D) f() 100Fields: 101 Field int 102 AnotherField string 103 ThirdField C 104Named types: 105 type D defined here 106 107-------- @describe ref-lexical-d -------- 108reference to var d D 109defined here 110Methods: 111 method (D) f() 112Fields: 113 Field int 114 AnotherField string 115 ThirdField C 116Named types: 117 type D defined here 118 119-------- @describe ref-anon -------- 120reference to var anon func() 121defined here 122 123-------- @describe ref-global -------- 124reference to var global *string 125defined here 126 127-------- @describe var-def-x-1 -------- 128definition of var x *int 129 130-------- @describe var-ref-x-1 -------- 131reference to var x *int 132defined here 133 134-------- @describe var-def-x-2 -------- 135reference to var x *int 136defined here 137 138-------- @describe var-ref-x-2 -------- 139reference to var x *int 140defined here 141 142-------- @describe var-ref-i-C -------- 143reference to var i I 144defined here 145Methods: 146 method (I) f() 147Named types: 148 type I defined here 149 150-------- @describe var-ref-i-D -------- 151reference to var i I 152defined here 153Methods: 154 method (I) f() 155Named types: 156 type I defined here 157 158-------- @describe var-ref-i -------- 159reference to var i I 160defined here 161Methods: 162 method (I) f() 163Named types: 164 type I defined here 165 166-------- @describe const-local-pi -------- 167definition of const localpi untyped float of value 3.141 168 169-------- @describe const-local-pie -------- 170definition of const localpie cake of value 3.141 171Named types: 172 type cake defined here 173 174-------- @describe const-ref-localpi -------- 175reference to const localpi untyped float of value 3.141 176defined here 177 178-------- @describe type-def-T -------- 179definition of type T (size 8, align 8) 180No methods. 181 182-------- @describe type-ref-T -------- 183reference to type T (size 8, align 8) 184defined as int 185No methods. 186 187-------- @describe const-expr -------- 188binary * operation of value 6 189 190-------- @describe const-expr2 -------- 191binary - operation of value -2 192 193-------- @describe map-lookup,ok -------- 194index expression of type (*int, bool) 195 196-------- @describe mapval -------- 197reference to var mapval *int 198defined here 199 200-------- @describe m -------- 201reference to var m map[string]*int 202defined here 203 204-------- @describe defer-stmt -------- 205defer statement 206 207-------- @describe go-stmt -------- 208go statement 209 210-------- @describe builtin-ref-panic -------- 211function call (or conversion) of type () 212 213-------- @describe var-decl-stmt -------- 214definition of var a2 int 215 216-------- @describe var-decl-stmt2 -------- 217definition of var _ int 218 219-------- @describe var-def-blank -------- 220definition of var _ int 221 222-------- @describe lib-outer -------- 223reference to type lib.Outer (size 56, align 8) 224defined as struct{A int; b int; lib.inner} 225No methods. 226Fields: 227 A int 228 inner.C bool 229 inner.recursive.E bool 230 231-------- @describe var-map-of-C-D -------- 232definition of var mmm map[C]D 233Named types: 234 type C defined here 235 type D defined here 236 237-------- @describe field-access -------- 238reference to field ThirdField C 239defined here 240Methods: 241 method (*C) f() 242Named types: 243 type C defined here 244 245-------- @describe call-unknown -------- 246function call of type invalid type 247 248-------- @describe def-iface-I -------- 249definition of type I (size 16, align 8) 250Methods: 251 method (I) f() 252 253-------- @describe def-imethod-I.f -------- 254definition of interface method func (I).f() 255 256