googleproto

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCodec = Codec{
	ErrorHandler: PanicHandler,
}

Functions

func PanicHandler

func PanicHandler(v any) error

Types

type Codec

type Codec struct {
	ErrorHandler func(any) error
}

Codec implements https://pkg.go.dev/google.golang.org/protobuf/proto

func (Codec) Marshal

func (c Codec) Marshal(v any) ([]byte, error)

func (Codec) Unmarshal

func (c Codec) Unmarshal(data []byte, v any) error

Jump to

Keyboard shortcuts

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