20 lines
271 B
Go
20 lines
271 B
Go
|
package main
|
||
|
|
||
|
import "log"
|
||
|
|
||
|
type MyPlugin struct{}
|
||
|
|
||
|
func (e *MyPlugin) PluginName() string {
|
||
|
return "my.plugin"
|
||
|
}
|
||
|
|
||
|
func (e *MyPlugin) PluginVersion() string {
|
||
|
return "0.0.0"
|
||
|
}
|
||
|
|
||
|
func (e *MyPlugin) HookInit() error {
|
||
|
log.Println("MyPlugin initialized !")
|
||
|
|
||
|
return nil
|
||
|
}
|