encoding

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMessagePack

func DecodeMessagePack(in []byte, out interface{}) error

DecodeMessagePack is a function that decodes a given byte slice using MessagePack deserialization. It takes an input byte slice and an interface{} representing the output structure for the deserialized message. It returns an error if the decoding process fails.

func EncodeMessagePack

func EncodeMessagePack(msg interface{}) ([]byte, error)

EncodeMessagePack is a function that encodes a given message using MessagePack serialization. It takes an interface{} parameter representing the message and returns the encoded byte slice and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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