Add default plugin loader

This commit is contained in:
Asim Aslam 2019-09-09 19:43:13 -07:00
parent b6c6b13277
commit 3bfbcd5e6a

View File

@ -23,6 +23,11 @@ type Config struct {
NewFunc interface{} NewFunc interface{}
} }
var (
// Default plugin loader
DefaultPlugin = NewPlugin()
)
// NewPlugin creates a new plugin interface // NewPlugin creates a new plugin interface
func NewPlugin() Plugin { func NewPlugin() Plugin {
return &plugin{} return &plugin{}