plugins

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginHandshake = plugins.PluginHandshake

PluginHandshake is the handshake config for plugins.

Functions

func ServePlugin

func ServePlugin(p Plugin)

ServePlugin serves a plugin. This is meant to be called from a plugin's main function.

Types

type Plugin

type Plugin interface{ plugins.Plugin }

Plugin is the interface that plugins must implement.

func NewFuncMapPlugin

func NewFuncMapPlugin(funcMap template.FuncMap) Plugin

NewFuncMapPlugin creates a plugin that provides functions from a text/template.FuncMap.

Jump to

Keyboard shortcuts

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