Categorygithub.com/ipfs/go-ipfs-ds-help
modulepackage
0.1.1
Repository: https://github.com/ipfs/go-ipfs-ds-help.git
Documentation: pkg.go.dev

# README

go-ipfs-ds-help

standard-readme compliant GoDoc Build Status

go-ipfs-ds-help provides utilities for parsing and creating datastore keys used by go-ipfs.

Table of Contents

Install

go-ipfs-ds-help works like a regular Go module:

> go get github.com/ipfs/go-ipfs-ds-help

Usage

import "github.com/ipfs/go-ipfs-ds-help"

Check the GoDoc documentation

This module uses Gx to manage dependencies. You can use make all to build it with the gx dependencies.

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Protocol Labs, Inc.

# Functions

BinaryFromDsKey returns the byte slice corresponding to the given Key.
CidToDsKey creates a Key from the given Cid.
DsKeyToCid converts the given Key to its corresponding Cid.
NewKeyFromBinary creates a new key from a byte slice.