MCPcopy
hub / github.com/FiloSottile/age / ExamplePlugin_main

Function ExamplePlugin_main

plugin/example_test.go:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func ExamplePlugin_main() {
32 p, err := plugin.New("example")
33 if err != nil {
34 log.Fatal(err)
35 }
36 p.HandleRecipient(func(data []byte) (age.Recipient, error) {
37 return NewRecipient(data)
38 })
39 p.HandleIdentity(func(data []byte) (age.Identity, error) {
40 return NewIdentity(data)
41 })
42 os.Exit(p.Main())
43}

Callers

nothing calls this directly

Calls 6

NewFunction · 0.92
HandleRecipientMethod · 0.80
HandleIdentityMethod · 0.80
MainMethod · 0.80
NewRecipientFunction · 0.70
NewIdentityFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…