GoModules / PluginSystem /
root on 25 Jun 2022 637 bytes simple plugin system added

Plugin Example

A simple plugin system so people can create simple plugin.go files to drop in a specific folder and they will be recognized and added to the app for use within the app.

example use:

$> ./Vic4
result of !help:
cmd:!help, name:Help
about:Display all plugins informaion

cmd:!add, name:Example Addition
about:Example plugin to add two numbers together

cmd:!echo, name:Example Echo
about:Example plugin to repeat what is sent to it

result of !echo: returning: this argument returned
result of !add (1+2): 3


A MASSIVE thanks to @MantisSTS for writing the majority of this!