MCPcopy Index your code
hub / github.com/FiloSottile/age / New

Function New

plugin/plugin.go:49–52  ·  view source on GitHub ↗

New creates a new Plugin with the given name. For example, a plugin named "frood" would be invoked as "age-plugin-frood".

(name string)

Source from the content-addressed store, hash-verified

47//
48// For example, a plugin named "frood" would be invoked as "age-plugin-frood".
49func New(name string) (*Plugin, error) {
50 return &Plugin{name: name, stdin: os.Stdin,
51 stdout: os.Stdout, stderr: os.Stderr}, nil
52}
53
54// Name returns the name of the plugin.
55func (p *Plugin) Name() string {

Callers 8

ExamplePlugin_mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
TestMainFunction · 0.92
mainFunction · 0.92
TestMainFunction · 0.85

Calls

no outgoing calls

Tested by 3

ExamplePlugin_mainFunction · 0.74
TestMainFunction · 0.74
TestMainFunction · 0.68