mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
12 lines
219 B
Go
12 lines
219 B
Go
|
package plugins
|
||
|
|
||
|
import "github.com/v2fly/v2ray-core/v5/main/commands/base"
|
||
|
|
||
|
var Plugins []Plugin
|
||
|
|
||
|
type Plugin func(*base.Command) func() error
|
||
|
|
||
|
func RegisterPlugin(plugin Plugin) {
|
||
|
Plugins = append(Plugins, plugin)
|
||
|
}
|