github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/oracle/testdata/src/describe/main.golden (about)

     1  -------- @describe pkgdecl --------
     2  definition 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  	const pi     untyped float = 3.141
    14  	const pie    cake = 3.141
    15  
    16  -------- @describe badimport1 --------
    17  
    18  Error: can't import package "nosuchpkg"
    19  -------- @describe badimport2 --------
    20  
    21  Error: can't import package "nosuchpkg"
    22  -------- @describe type-ref-builtin --------
    23  reference to built-in type float64
    24  
    25  -------- @describe const-ref-iota --------
    26  reference to const iota untyped int of constant value 0
    27  
    28  -------- @describe const-def-pi --------
    29  definition of const pi untyped float
    30  
    31  -------- @describe const-def-pie --------
    32  definition of const pie cake
    33  
    34  -------- @describe const-ref-pi --------
    35  reference to const pi untyped float of constant value 3.141
    36  defined here
    37  
    38  -------- @describe func-def-main --------
    39  definition of func main()
    40  
    41  -------- @describe func-ref-main --------
    42  reference to func main()
    43  defined here
    44  
    45  -------- @describe func-ref-*C.f --------
    46  reference to method func (*C).f()
    47  defined here
    48  
    49  -------- @describe func-ref-D.f --------
    50  reference to method func (D).f()
    51  defined here
    52  
    53  -------- @describe func-ref-I.f --------
    54  reference to interface method func (I).f()
    55  defined here
    56  
    57  -------- @describe type-D --------
    58  reference to type D (size 0, align 1)
    59  defined as struct{}
    60  Method set:
    61  	method (D) f()
    62  
    63  -------- @describe type-I --------
    64  reference to type I (size 16, align 8)
    65  defined as interface{f()}
    66  Method set:
    67  	method (I) f()
    68  
    69  -------- @describe func-ref-d.f --------
    70  reference to method func (D).f()
    71  defined here
    72  
    73  -------- @describe func-ref-i.f --------
    74  reference to interface method func (I).f()
    75  defined here
    76  
    77  -------- @describe ref-lexical-d --------
    78  reference to var d D
    79  defined here
    80  
    81  -------- @describe ref-anon --------
    82  reference to var anon func()
    83  defined here
    84  
    85  -------- @describe ref-global --------
    86  reference to var global *string
    87  defined here
    88  
    89  -------- @describe var-def-x-1 --------
    90  definition of var x *int
    91  
    92  -------- @describe var-ref-x-1 --------
    93  reference to var x *int
    94  defined here
    95  
    96  -------- @describe var-def-x-2 --------
    97  reference to var x *int
    98  defined here
    99  
   100  -------- @describe var-ref-x-2 --------
   101  reference to var x *int
   102  defined here
   103  
   104  -------- @describe var-ref-i-C --------
   105  reference to var i I
   106  defined here
   107  
   108  -------- @describe var-ref-i-D --------
   109  reference to var i I
   110  defined here
   111  
   112  -------- @describe var-ref-i --------
   113  reference to var i I
   114  defined here
   115  
   116  -------- @describe const-local-pi --------
   117  definition of const localpi untyped float
   118  
   119  -------- @describe const-local-pie --------
   120  definition of const localpie cake
   121  
   122  -------- @describe const-ref-localpi --------
   123  reference to const localpi untyped float of constant value 3.141
   124  defined here
   125  
   126  -------- @describe type-def-T --------
   127  definition of type T (size 8, align 8)
   128  No methods.
   129  
   130  -------- @describe type-ref-T --------
   131  reference to type T (size 8, align 8)
   132  defined as int
   133  No methods.
   134  
   135  -------- @describe const-expr --------
   136  binary * operation of constant value 6
   137  
   138  -------- @describe const-expr2 --------
   139  binary - operation of constant value -2
   140  
   141  -------- @describe map-lookup,ok --------
   142  index expression of type (*int, bool)
   143  
   144  -------- @describe mapval --------
   145  reference to var mapval *int
   146  defined here
   147  
   148  -------- @describe m --------
   149  reference to var m map[string]*int
   150  defined here
   151  
   152  -------- @describe defer-stmt --------
   153  defer statement
   154  
   155  -------- @describe go-stmt --------
   156  go statement
   157  
   158  -------- @describe builtin-ref-panic --------
   159  function call (or conversion) of type ()
   160  
   161  -------- @describe var-decl-stmt --------
   162  definition of var a2 int
   163  
   164  -------- @describe var-decl-stmt2 --------
   165  definition of var _ int
   166  
   167  -------- @describe var-def-blank --------
   168  definition of var _ int
   169  
   170  -------- @describe def-iface-I --------
   171  definition of type I (size 16, align 8)
   172  Method set:
   173  	method (I) f()
   174  
   175  -------- @describe def-imethod-I.f --------
   176  definition of interface method func (I).f()
   177