Documentation
¶
Overview ¶
Package serde provides serialisation and deserialization utilities using CBOR (Concise Binary Object Representation) format.
See README.md for details.
Index ¶
Constants ¶
View Source
const ( DefaultMaxArrayElements = 131072 DefaultMaxMapPairs = 131072 DefaultMaxNestedLevels = 32 )
Variables ¶
View Source
var ( ErrSerialisation = errs.New("serialisation error") ErrDeserialisation = errs.New("deserialisation error") )
Functions ¶
func MarshalCBOR ¶
MarshalCBOR serialises the given value to CBOR format.
func MarshalCBORTagged ¶
MarshalCBORTagged serialises the given value to CBOR format with the specified tag.
func UnmarshalCBOR ¶
UnmarshalCBOR deserialises the given CBOR data into the specified type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.