Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
libkv
✓ github.com/rpcxio/libkv
Store and retrieve a key-value pair using etcd backend.
package main
import (
"fmt"
"github.com/rpcxio/libkv"
"github.com/rpcxio/libkv/store"
"github.com/rpcxio/libkv/store/etcd"
)
func main() {
etcd.Register()
kv, err := libkv.NewStore(store.ETCD, []string{"http://localhost:2379"}, nil)
if err != nil {
panic(err)
}
err = kv.Put("key", []byte("value"), nil)
if err != nil {
panic(err)
}
pair, _ := kv.Get("key")
fmt.Println(string(pair.Value))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.5.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.