I am trying to create a .so file for entire Go module, my module directory looks something like this:
goAgent/ -- cavagent.go file -- modules/ -- sample/ -- differentsample/
When I make a .so of the goAgent/ , all I'm getting are the functions of the .go file and not those that present inside the other Go modules. Is there any known way where we can found the functions that are present inside the several Go modules?
What I want is that the functions that are present inside the Go files of modules i.e sample/ and differentsample/ should be available inside my .so.
If you can see below the names of the directory is goAgent/ and it contains a modules folder, which in turn contains different modules. I want the functions that are present inside the files of these sub modules to be present in my .so , a sort of common .so for the entire goAgent/ and sub-folders.
Currently my .so contains only the functions of cavagent.go file only.
I made my .so using the -buildmode=shared -linkshared command.