golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/completion/unsafe.txt (about) 1 This test checks completion of symbols in the 'unsafe' package. 2 3 -- flags -- 4 -ignore_extra_diags 5 6 -- settings.json -- 7 { 8 "matcher": "caseinsensitive" 9 } 10 11 -- unsafe.go -- 12 package unsafe 13 14 import ( 15 "unsafe" 16 ) 17 18 // Pre-set this marker, as we don't have a "source" for it in this package. 19 /* unsafe.Sizeof */ //@item(Sizeof, "Sizeof", "invalid type", "text") 20 21 func _() { 22 x := struct{}{} 23 _ = unsafe.Sizeof(x) //@complete("z", Sizeof) 24 }