- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FuncVar (0.25 sec)
-
src/cmd/cgo/internal/testplugin/testdata/sub/plugin1/plugin1.go
// license that can be found in the LICENSE file. package main // // No C code required. import "C" import "testplugin/common" func F() int { return 17 } var FuncVar = func() {} func ReadCommonX() int { FuncVar() return common.X } func main() { panic("plugin1.main called")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 395 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/host/host.go
} subp, err := plugin.Open(subpPath) if err != nil { log.Fatalf("plugin.Open(%q) failed: %v", subpPath, err) } funcVar, err := subp.Lookup("FuncVar") if err != nil { log.Fatalf(`sub/plugin1.Lookup("FuncVar") failed: %v`, err) } called := false *funcVar.(*func()) = func() { called = true } readFunc, err = subp.Lookup("ReadCommonX") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.9K bytes - Viewed (0)