golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/hover/linkname.txt (about) 1 This test check hover on the 2nd argument in go:linkname directives. 2 3 Requires go1.19+ for the new go/doc/comment package. 4 5 -- flags -- 6 -min_go=go1.19 7 8 -- go.mod -- 9 module mod.com 10 11 -- upper/upper.go -- 12 package upper 13 14 import ( 15 _ "unsafe" 16 _ "mod.com/lower" 17 ) 18 19 //go:linkname foo mod.com/lower.bar //@hover("mod.com/lower.bar", "mod.com/lower.bar", bar) 20 func foo() string 21 22 -- lower/lower.go -- 23 package lower 24 25 // bar does foo. 26 func bar() string { 27 return "foo by bar" 28 } 29 30 -- @bar -- 31 ```go 32 func bar() string 33 ``` 34 35 bar does foo.