Skip to content

foomo/onepassword-go

Repository files navigation

onepassword-go

Build Status Go Report Card godoc goreleaser

Unified way to handle op, service accounts & connect

Usage

package main

import (
  "context"
  "fmt"
  "testing"

  "github.com/foomo/onepassword-go"
)

func TestSecret(t *testing.T) {
  secret, err := onepassword.Secret(context.TODO(), "your-name", "vault", "item", "field")
  if err != nil {
    panic(err)
  }
  fmt.Println(secret)
}

How to Contribute

Make a pull request...

License

Distributed under MIT License, please see license file within the code for more details.