(s string, ui *ClientUI)
| 38 | var _ age.RecipientWithLabels = &Recipient{} |
| 39 | |
| 40 | func NewRecipient(s string, ui *ClientUI) (*Recipient, error) { |
| 41 | name, _, err := ParseRecipient(s) |
| 42 | if err != nil { |
| 43 | return nil, err |
| 44 | } |
| 45 | return &Recipient{ |
| 46 | name: name, encoding: s, ui: ui, |
| 47 | }, nil |
| 48 | } |
| 49 | |
| 50 | // Name returns the plugin name, which is used in the recipient ("age1name1...") |
| 51 | // and identity ("AGE-PLUGIN-NAME-1...") encodings, as well as in the plugin |
searching dependent graphs…