cbor

package
v0.0.0-...-335d32b Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil []byte

Nil is the nil value encoded in CBOR

Functions

func Decode

func Decode(r io.Reader, v interface{}) error

Decode reads CBOR data from r and unpacks into v.

func DecodeBytes

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

DecodeBytes parses CBOR data in b and unpacks into v.

func Encode

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

Encode writes v to w in CBOR format.

func MustDecode

func MustDecode(r io.Reader, v interface{})

MustDecode reads CBOR data from r and unpacks into v, or panics if unable to do so.

func MustDecodeBytes

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

MustDecodeBytes parses CBOR data in b and unpacks into v, or panics if unable to do so.

func MustEncode

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

MustEncode writes v to w in CBOR format, or panics if unable to do so.

Types

This section is empty.

Jump to

Keyboard shortcuts

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