config

package
v0.0.0-...-1d50e38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL