plugger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 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 Plugin

type Plugin struct {
	// Name Plugin name
	Name string
	// Type Plugin type
	Type string
	// Path Plugin path
	Path string
	// NewFunc Plugin new instance func
	NewFunc interface{}
}

Plugin is a plugin loaded from a file.

func Load

func Load(path string) (*Plugin, error)

Load loading plugin build by `go build --buildmode=plugin` from filepath return plugin instance and error

Jump to

Keyboard shortcuts

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