plugin.go 1.05 KiB
package banner
import (
"fmt"
"github.com/iotaledger/hive.go/node"
)
// PluginName is the name of the banner plugin.
const PluginName = "Banner"
// Plugin is the plugin instance of the banner plugin.
var Plugin = node.NewPlugin(PluginName, node.Enabled, configure, run)
const (
// AppVersion version number
AppVersion = "v0.2.0"
// AppName app code name
AppName = "GoShimmer"
)
func configure(ctx *node.Plugin) {
fmt.Printf(`
_____ ____ _____ _ _ _____ __ __ __ __ ______ _____
/ ____|/ __ \ / ____| | | |_ _| \/ | \/ | ____| __ \
| | __| | | | (___ | |__| | | | | \ / | \ / | |__ | |__) |
| | |_ | | | |\___ \| __ | | | | |\/| | |\/| | __| | _ /
| |__| | |__| |____) | | | |_| |_| | | | | | | |____| | \ \
\_____|\____/|_____/|_| |_|_____|_| |_|_| |_|______|_| \_\
%s
`, AppVersion)
fmt.Println()
ctx.Node.Logger.Infof("GoShimmer version %s ...", AppVersion)
ctx.Node.Logger.Info("Loading plugins ...")
}
func run(ctx *node.Plugin) {}