marshal

package
v0.0.0-...-4a1318b Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgpackSpec

type MsgpackSpec[T any] struct {
	// contains filtered or unexported fields
}

func Msgpack

func Msgpack[T any]() *MsgpackSpec[T]

func (*MsgpackSpec[T]) Marshal

func (m *MsgpackSpec[T]) Marshal(v T) ([]byte, error)

func (*MsgpackSpec[T]) Unmarshal

func (m *MsgpackSpec[T]) Unmarshal(data []byte) (T, error)

type Spec

type Spec[T any] interface {
	marshal.Spec[T]
}

func Bytes

func Bytes[T marshal.BytesCompatible]() Spec[T]

Jump to

Keyboard shortcuts

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