Thin wrapper around the 1Password CLI for use in Golang.
This is a stub and should not be used in production.
Hopefully 1Password creates their own client library. See discussion.
First install the 1Password CLI.
Import the package, create a client, and retrieve an item.
import ( "os" op "github.com/ameier38/onepassword" ) func main() { password := os.GetEnv("OP_PASSWORD") secretKey := os.GetEnv("OP_SECRET_KEY") client := op.NewClient("op", "subdomain", "test@subdomain.com", password, secretKey) item := client.GetItem(VaultName("test-vault"), ItemName("test-item")) }