MCPcopy Create free account
hub / github.com/Binject/universal / main

Function main

examples/linux_example/main.go:12–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func main() {
13 image, err := ioutil.ReadFile("../../test/64/main.so")
14
15 loader, err := universal.NewLoader()
16 if err != nil {
17 log.Fatal(err)
18 }
19
20 library, err := loader.LoadLibrary("main", &image)
21 if err != nil {
22 log.Fatal(err)
23 }
24
25 val, err := library.Call("Runme", 7)
26 if err != nil {
27 log.Fatal(err)
28 }
29 log.Printf("%+v\n", val)
30}

Callers

nothing calls this directly

Calls 3

LoadLibraryMethod · 0.95
NewLoaderFunction · 0.92
CallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…