golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/completion/func_value.txt (about) 1 This test checks completion related to function values. 2 3 -- flags -- 4 -ignore_extra_diags 5 6 -- func_value.go -- 7 package funcvalue 8 9 func fooFunc() int { //@item(fvFooFunc, "fooFunc", "func() int", "func") 10 return 0 11 } 12 13 var _ = fooFunc() //@item(fvFooFuncCall, "fooFunc", "func() int", "func") 14 15 var fooVar = func() int { //@item(fvFooVar, "fooVar", "func() int", "var") 16 return 0 17 } 18 19 var _ = fooVar() //@item(fvFooVarCall, "fooVar", "func() int", "var") 20 21 type myFunc func() int 22 23 var fooType myFunc = fooVar //@item(fvFooType, "fooType", "myFunc", "var") 24 25 var _ = fooType() //@item(fvFooTypeCall, "fooType", "func() int", "var") 26 27 func _() { 28 var f func() int 29 f = foo //@complete(" //", fvFooFunc, fvFooType, fvFooVar) 30 31 var i int 32 i = foo //@complete(" //", fvFooFuncCall, fvFooTypeCall, fvFooVarCall) 33 }