feat: ✨ initialize project structure with frontend dependencies and backend protocols
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package keychain
|
||||
|
||||
import "github.com/zalando/go-keyring"
|
||||
|
||||
const serviceName = "goexplore"
|
||||
|
||||
func SetSecret(id string, secret string) error {
|
||||
key := "goexplore-" + id
|
||||
return keyring.Set(serviceName, key, secret)
|
||||
}
|
||||
|
||||
func GetSecret(id string) (string, error) {
|
||||
key := "goexplore-" + id
|
||||
return keyring.Get(serviceName, key)
|
||||
}
|
||||
|
||||
func DeleteSecret(id string) error {
|
||||
key := "goexplore-" + id
|
||||
return keyring.Delete(serviceName, key)
|
||||
}
|
||||
Reference in New Issue
Block a user