Registry / database / ipfs-go-datastore

ipfs-go-datastore

JSON →
library0.9.1gogounverified

Package datastore provides a key-value store interface for IPFS and related projects.

go get github.com/ipfs/go-datastore
INSTALL
IMPORT
SIG · IPFS-GO-DATASTORE
I
ipfs-go-datastore
databasegov0.9.1
harness data pending
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.

datastore
github.com/ipfs/go-datastore

Store and retrieve a value using an in-memory datastore.

package main import ( "fmt" "github.com/ipfs/go-datastore" ) func main() { ds := datastore.NewMapDatastore() key := datastore.NewKey("example") err := ds.Put(key, []byte("value")) if err != nil { fmt.Println(err) return } val, _ := ds.Get(key) fmt.Println(string(val)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
ipfs-go-datastore — go get ipfs-go-datastore · libregistry