|
|
|
|
|
by totallygamerjet
1218 days ago
|
|
It’s pretty simple to use if you are familiar with dlopen and friends. Just call purego.Dlopen(“libname.so”, purego.RTLD_GLOBAL) Take the returned library (make sure to check for errors with purego.Dlerror() first) and call purego.Dlsym(lib, “cfuncName”). If it exists than u can call it with either purego.SyscallN or purego.RegisterFunc |
|
It's easier with dlopen because it's still C and therefore you have the normal headers…