3 ms·
As far as I know there is still no easy facility to dynamically load libraries at runtime (like the analogous 'dlopen' in C). There are shared libraries and th
by abetusk 11y ago
As far as I know there is still no easy facility to dynamically load libraries at runtime (like the analogous 'dlopen' in C). There are shared libraries and they can be linked at compile time so it's a step in the right direction.
- dvirsky 11y agoThe spec that's linked from the presentation says that it should be possible (and has an example API usage). Unless they didn't implement it fully, of course, or it's due for a later Go version. > to support Go packages that want to use plugins, a new package will be added to the standard library: plugin. It will define a function and a type. https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/edit?pli=1 https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGh... [EDIT] I looked at the commits and it looks like it's not in the works, at least on the main repo.