1 // Package a is a package for testing go to definition.
2 package a //@mark(aPackage, "a "),hover("a ", aPackage)
12 x string //@x,hover("x", x)
15 // Constant block. When I hover on h, I should see this comment.
17 // When I hover on g, I should see this comment.
18 g = 1 //@g,hover("g", g)
20 h = 2 //@h,hover("h", h)
23 // z is a variable too.
24 var z string //@z,hover("z", z)
26 type A string //@mark(AString, "A")
28 func AStuff() { //@AStuff
30 Random2(x) //@godef("dom2", Random2)
31 Random() //@godef("()", Random)
34 fmt.Printf("%v", err) //@godef("err", err)
36 var y string //@string,hover("string", string)
37 _ = make([]int, 0) //@make,hover("make", make)
40 mu.Lock() //@Lock,hover("Lock", Lock)
42 var typ *types.Named //@mark(typesImport, "types"),hover("types", typesImport)
43 typ.Obj().Name() //@Name,hover("Name", Name)
49 func (_ A) Hi() {} //@mark(AHi, "Hi")
52 Field int //@mark(AField, "Field")
54 H // embed an interface
58 Field2 int //@mark(AField2, "Field2")
61 func (_ R) Hey() {} //@mark(AHey, "Hey")
64 Goodbye() //@mark(AGoodbye, "Goodbye")
73 Hello() //@mark(AHello, "Hello")