Golang plugins usage (with error handling example)
Fundamentals Package plugin implements loading and symbol resolution of Go plugins. Pros: Dynamic Loading: Plugins can be loaded and unloaded dynamically at runtime. Encapsulation: Since plugins run under their own package, there are no conflicts etc. Cons: Version Dependency: While I was using it, I kept getting the error ‘plugin was built with a different version of package XXX’ because the plugin.so file requires all packages used in the build to be the same as the main application....