protobuf

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongValueType = errors.New("protobuf: convert on wrong type value")

ErrWrongValueType is the error used for marshal the value with protobuf encoding.

Functions

func NewSerializer

func NewSerializer() ndef.Serializer

Types

type Serializer

type Serializer struct{}

func (*Serializer) Marshal

func (s *Serializer) Marshal(v any) ([]byte, error)

func (*Serializer) Unmarshal

func (s *Serializer) Unmarshal(data []byte, v any) error

Jump to

Keyboard shortcuts

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