|
|
|
|
|
by ianlancetaylor
4308 days ago
|
|
The plugin API uses file names, so discovery would be at a higher level. Go packages impose their own namespace, so there shouldn't be any namespace issues. Introspection is useful, but would be a matter of examining the files using existing packages like debug/elf; it would not be part of the plugin API. Basically the plugin API is isomorphic to dlopen/dlclose. Everything else is built on top of that. |
|
That combined with the Plugin struct (which hopefully would have something like an iterable Map of exported symbols) resolves the issues I was concerned about. Nice.