MasterKeysFromFingerprintString takes a comma separated list of PGP fingerprints and returns a slice of new MasterKeys with those fingerprints.
(fingerprint string)
| 101 | // MasterKeysFromFingerprintString takes a comma separated list of PGP |
| 102 | // fingerprints and returns a slice of new MasterKeys with those fingerprints. |
| 103 | func MasterKeysFromFingerprintString(fingerprint string) []*MasterKey { |
| 104 | var keys []*MasterKey |
| 105 | if fingerprint == "" { |
| 106 | return keys |
| 107 | } |
| 108 | for _, s := range strings.Split(fingerprint, ",") { |
| 109 | keys = append(keys, NewMasterKeyFromFingerprint(s)) |
| 110 | } |
| 111 | return keys |
| 112 | } |
| 113 | |
| 114 | // GnuPGHome is the absolute path to a GnuPG home directory. |
| 115 | // A new keyring can be constructed by combining the use of NewGnuPGHome() and |