plugins

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(h Handler)

func HandleCommandLine

func HandleCommandLine(opt string, args []string) error

func IsFile

func IsFile(path string) (bool, error)

func LoadPlugins

func LoadPlugins(dir string) error

Types

type Handler

type Handler interface {
	HandlePlugin(p *Plugin) error
}

type Plugin

type Plugin struct {
	*plugin.Plugin
	// contains filtered or unexported fields
}

func (*Plugin) GetName

func (this *Plugin) GetName() string

func (*Plugin) GetPath

func (this *Plugin) GetPath() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL