loader

package
v0.0.0-...-d63aa6d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPluginLoader

type GoPluginLoader struct {
}

func (*GoPluginLoader) Get

func (l *GoPluginLoader) Get(path string) (*Plugin, error)

type Loader

type Loader interface {
	Get(path string) (*Plugin, error)
}

type Plugin

type Plugin struct {
	Cmd, Path string
	Func      func(string) (string, error)
}

func (*Plugin) Exec

func (p *Plugin) Exec(q string) (string, error)

Jump to

Keyboard shortcuts

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