Such similar question was posted 6 yrs ago (How to import and use .so file in golang program)
I guess the current releases would have looked into this.
I have to call network.so from my Go code.
One of the function under network.so
bool Tape::test1(obj a,obj b) {
}
My current implementation
/* #cgo LDFLAGS: -ldl
#include <dlfcn.h>
*/
func main() {
handle := C.dlopen(C.CString("network.so"), C.RTLD_LAZY)
//How to call C.test1 function ?
}
Looking for some examples.