[go-nuts] Is it possible to interpose exported functions.

2020-08-06 Thread emeguag
Here in the example below: package main import ( "C" "fmt" ) //export test func test() { fmt.Println("test code") } func main() { } The above package was built using -builtmode=c-shared. I wanted to load the built library in my C code, and interpose the esported function 't

[go-nuts] When does golang use libc for syscall implementation

2020-08-06 Thread emeguag
I read somewhere (Very sorry I couldn't get the link now) that golang uses libc to implement syscalls when the code is built in c-shared mode. I want to check if this true. I was using a go c-shared library as a plugin in my C code, and I wanted to interpose some of the syscalls. If go really