- Define a Go interface for plugin
- Create a C style shared library with a factory function
- On the application side, load the library and cast the pointer to the plugin interface
- Make sure the Go runtime is compiled as a shared library visible to the application and respective plugins
It is as easy to put a jar into a directory? No, but it is doable.
> On the application side, load the library
Show me the code then, I still maintain than what you think is possible isn't. And I don't want to see any C code in your example.
- Define a Go interface for plugin
- Create a C style shared library with a factory function
- On the application side, load the library and cast the pointer to the plugin interface
- Make sure the Go runtime is compiled as a shared library visible to the application and respective plugins
It is as easy to put a jar into a directory? No, but it is doable.