I created a shared library from install -linkshared -buildmode=shared cavwrapperlib with option.
I have written init method in it. and I have loaded this library with application and compiled my application with go build -linkshared main.go
how can I invoke library method without calling them application same as C support attribute((constructor)) //cavwrapperlib.so
He’s trying to ask is there any way we can call the init() function and then do some work in init function, as what we are trying to do is to initialize some native code through init function so that we don’t have to make any change in the main application, as soon the as application runs, over code inside init function should execute.