keychain

package module
v0.0.0-...-fb14aa7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2017 License: MIT Imports: 3 Imported by: 7

README

go-keychain

A simple interface for using the operating system's keychain to store and retrieve passwords.

Currently only supports OS X.

Usage

import "github.com/lunixbochs/go-keychain"

func main() {
  keychain.Add("test service", "username", "password")
  keychain.Find("test service", "username") == "password"
  keychain.Remove("test service", "username")
}

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(service, account, pass string) error

func Find

func Find(service, account string) (string, error)

func Remove

func Remove(service, account string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL