Help us shape the future of Go! Take the 2026 Go Developer Survey

msgpack

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec[T any] struct {
}

func New

func New[T any]() *Codec[T]

func (*Codec[T]) Decode

func (c *Codec[T]) Decode(b []byte, data *T) (err error)

Decode desserializa os dados de MsgPack para o tipo T

func (*Codec[T]) Encode

func (c *Codec[T]) Encode(data T) (b []byte, err error)

Encode serializa os dados como MsgPack (formato binário mais compacto que JSON)

Jump to

Keyboard shortcuts

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