protoutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Length = 4
)

Variables

This section is empty.

Functions

func DecodeReader

func DecodeReader(r io.Reader, dst proto.Message) error

func EncodeWriter

func EncodeWriter(src Proto[proto.Message], w io.Writer) (int, error)

EncodeWriter encodes the source interface writes it to the destination io.Writer.

Types

type Proto

type Proto[T proto.Message] interface {
	Proto() T
}

Jump to

Keyboard shortcuts

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