Documentation ¶
Overview ¶
The plugin/config package is used to manage which plugins are imported into MCI. The installed_plugins.go file contains an import for each plugin package we would like to use.
Plugins publish themselves to the mci/plugin package on program initialization. This means that once we've written a package that properly registers a plugin, all we have to do to make the mci/plugin package aware of it is to import the new package somewhere (i.e. in installed_plugins.go).
To install a new plugin, simply get it:
go get host.com/path/to/new/plugin
And import it in installed_plugins.go with:
import _ "host.com/path/to/new/plugin"
(the underscore after the import is used to tell Go we just want to import the package for its initialization function)
Click to show internal directories.
Click to hide internal directories.