package
module
Version:
v0.0.0-...-a86e919
Opens a new window with list of versions in this module.
Published: Jun 23, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Generate a plugin file in pluginPath.
name: the name of .so file.
func SetPluginPath(path string)
Set the install path of plugins as you want
watch pluginPath, autoload plugins to replace origin function.
dir: watch directory of plugin files.
if dir is empty, use default value: os.Getwd() + "/tmp".
if loadAll is true, will load and run all existing plugins under dir before start watching
type Config struct {
ImportPath string
NewFunc interface{}
}
Config is the plugin config
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.