config

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 6 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