github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/imports/main.golden (about) 1 -------- @describe ref-pkg-import -------- 2 import of package "lib" 3 const Const untyped int = 3 4 func Func func() 5 type Outer struct{...} 6 type Sorter interface{...} 7 method (Sorter) Len() int 8 method (Sorter) Less(i int, j int) bool 9 method (Sorter) Swap(i int, j int) 10 type Type int 11 method (Type) Method(x *int) *int 12 var Var int 13 14 -------- @describe ref-pkg-import2 -------- 15 import of package "lib/sublib" 16 const C untyped int = 0 17 18 -------- @describe ref-const -------- 19 reference to const lib.Const untyped int of value 3 20 defined here 21 22 -------- @describe ref-func -------- 23 reference to func lib.Func() 24 defined here 25 26 -------- @describe ref-var -------- 27 reference to var lib.Var int 28 defined here 29 30 -------- @describe ref-type -------- 31 reference to type lib.Type (size 8, align 8) 32 defined as int 33 Methods: 34 method (Type) Method(x *int) *int 35 36 -------- @describe ref-method -------- 37 reference to method func (lib.Type).Method(x *int) *int 38 defined here 39 40 -------- @pointsto p -------- 41 this *int may point to these objects: 42 imports.a 43 44 -------- @describe ref-pkg -------- 45 reference to package "lib" 46 const Const untyped int = 3 47 func Func func() 48 type Outer struct{...} 49 type Sorter interface{...} 50 method (Sorter) Len() int 51 method (Sorter) Less(i int, j int) bool 52 method (Sorter) Swap(i int, j int) 53 type Type int 54 method (Type) Method(x *int) *int 55 var Var int 56