Getting Started
go-plugin focuses on deterministic plugin registration and lifecycle management for applications that want an explicit, testable plugin model.
Main components
plugin.Registrystores plugin instances in insertion order.
plugin.FactoryRegistrystores named plugin factories.
plugin.DiscoverFromValuesdiscovers values implementing thePlugininterface.
plugin.RegisterRouteProvidersbridgesRoutes()providers intogo-module-router.
Extension points
The package also includes optional helpers for .so loading and process-based sandboxes. Those helpers stay small and can be adopted incrementally when your plugin model needs them.