cbor

package
v2.0.0-...-057b331 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(b []byte, v interface{}) error

Decode decodes bytes and stores the result in v.

func Encode

func Encode(v interface{}) ([]byte, error)

Encode encodes v and returns bytes.

func ReadFrom

func ReadFrom(w io.Reader, v interface{}) error

ReadFrom reads and stores the result in v.

func ToJSON

func ToJSON(cbor []byte) (string, error)

ToJSON converts CBOR to JSON.

func WriteTo

func WriteTo(w io.Writer, v interface{}) error

WriteTo writes v to writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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