repositorypackage
0.5.0
Repository: https://github.com/nhatthm/go-secretstorage.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
Secret Storage
A library for storing and retrieving secrets.
Prerequisites
Go >= 1.21
Install
go get go.nhat.io/secretstorage
Usage
package main
import (
"fmt"
"go.nhat.io/secretstorage"
)
func main() {
ss := secretstorage.NewKeyringStorage[string]()
err := ss.Set("service", "key", "value")
if err != nil {
panic(err)
}
value, err := ss.Get("service", "key")
if err != nil {
panic(err)
}
fmt.Println(value)
}
Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
Paypal donation
or scan this
