A library for storing and retrieving secrets.
Go >= 1.21
go get go.nhat.io/secretstorage
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)
}
If this project help you reduce time to develop, you can give me a cup of coffee :)
or scan this