codec

package
v0.0.0-...-1972cc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cat

func Cat(schema string, b ...[]byte) (key []byte)

Cat prepends schema and encodes using base58btc

func Marshal

func Marshal(i interface{}) []byte

func Unmarshal

func Unmarshal(data []byte, any interface{}) error

Types

type Oid

type Oid struct {
	cid.Cid
}

func ToOid

func ToOid(data []byte) *Oid

func (Oid) Bytes

func (o Oid) Bytes() []byte

func (Oid) String

func (o Oid) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL