Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Global = NewManager()
Global is the shared plugins manager instance
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager loads plugins, reads their Hooks maps, and dispatches entries.
func NewManager ¶
func NewManager() *Manager
NewManager creates a Yaegi interpreter, preloads the standard library, and initializes hook storage.
func (*Manager) LoadPlugins ¶
LoadPlugins scans dir for *.go plugins, Eval's them, then looks for a main.Hooks variable of type map[string]func().
Click to show internal directories.
Click to hide internal directories.