Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OpenPluginError = xrr.Xrror("Unable to open plugin at %s:\n\t%s").Out // DoesntExistError = xrr.Xrror("Plugin at %s has no %s.").Out )
View Source
var Core *loader = &loader{ "core", func(l *loader) error { if l.loaded == nil { l.loaded = make(map[string]pluginCmd) for k, fn := range core.Core { l.loaded[k] = fn } } return nil }, func(l *loader) (map[string][]string, error) { l.Load() ret := make(map[string][]string) var res []string for k, _ := range l.loaded { res = append(res, k) } ret["core"] = res return ret, nil }, nil, }
A customised always loaded Loader encapsulating core functionality
View Source
var PluginDoesNotExistError = xrr.Xrror("plugin does not exist: %s").Out
An error indicating the named plugin does not exist.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.