package multibase

Import Path
	github.com/multiformats/go-multibase (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 4 packages


Package-Level Type Names (total 2)
/* sort by: | */
Encoder is a multibase encoding that is verified to be supported and supports an Encode method that does not return an error Encode encodes the multibase using the given Encoder. ( Encoder) Encoding() Encoding func EncoderByName(str string) (Encoder, error) func MustNewEncoder(base Encoding) Encoder func NewEncoder(base Encoding) (Encoder, error) func github.com/ipfs/go-cid.Cid.Encode(base Encoder) string
Encoding identifies the type of base-encoding that a multibase is carrying. func Decode(data string) (Encoding, []byte, error) func Encoder.Encoding() Encoding func github.com/ipfs/go-cid.ExtractEncoding(v string) (Encoding, error) func Encode(base Encoding, data []byte) (string, error) func MustNewEncoder(base Encoding) Encoder func NewEncoder(base Encoding) (Encoder, error) func github.com/ipfs/go-cid.Cid.StringOfBase(base Encoding) (string, error)
Package-Level Functions (total 5)
Decode takes a multibase string and decodes into a bytes buffer. It will return an error if the selected base is not known.
Encode encodes a given byte slice with the selected encoding and returns a multibase string (<encoding><base-encoded-string>). It will return an error if the selected base is not known.
EncoderByName creates an encoder from a string, the string can either be the multibase name or single character multibase prefix
MustNewEncoder is like NewEncoder but will panic if the encoding is invalid.
NewEncoder create a new Encoder from an Encoding
Package-Level Variables (total 3)
EncodingToStr is a map of the supported encoding, unsupported encoding specified in standard are left out
ErrUnsupportedEncoding is returned when the selected encoding is not known or implemented.
Package-Level Constants (total 23)
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet
These are the encodings specified in the standard, not are all supported yet