Get retrieves a value from the keychain. Returns empty string if the entry does not exist.
(service, account string)
| 66 | // Get retrieves a value from the keychain. |
| 67 | // Returns empty string if the entry does not exist. |
| 68 | func Get(service, account string) (string, error) { |
| 69 | val, err := platformGet(service, account) |
| 70 | return val, wrapError("Get", err) |
| 71 | } |
| 72 | |
| 73 | // Set stores a value in the keychain, overwriting any existing entry. |
| 74 | func Set(service, account, data string) error { |
no test coverage detected