()
| 29 | } |
| 30 | |
| 31 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…