answer/plugin/base.go

23 lines
407 B
Go

package plugin
// Info presents the plugin information
type Info struct {
Name string
SlugName string
Description string
Author string
Version string
}
// Base is the base plugin
type Base interface {
// Info returns the plugin information
Info() Info
}
var (
// CallBase is a function that calls all registered base plugins
CallBase,
registerBase = MakePlugin[Base](true)
)