Documentation ¶ Index ¶ Variables func Read(name string) (string, error) func TempCopy(s string, ttl time.Duration) error func Write(name string, value string) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrSecretNotFound = errors.New("secret not found") ErrKeychainGet = errors.New("failed to read from Keychain") ErrKeychainSet = errors.New("failed to write to Keychain") ErrKeychainDel = errors.New("failed to delete from Keychain") ) Functions ¶ func Read ¶ func Read(name string) (string, error) Read reads a password. func TempCopy ¶ func TempCopy(s string, ttl time.Duration) error TempCopy copies string s into the clipboard and clears it after ttl. func Write ¶ func Write(name string, value string) error Write writes password or deletes it when the new value is empty. Types ¶ This section is empty. Source Files ¶ View all Source files clipboard.go keychain.go pasteword.go Click to show internal directories. Click to hide internal directories.