pb

package
v0.32.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMsg added in v0.32.0

func WriteMsg[T any, M Message[T]](w io.Writer, msg M) error

WriteMsg - write proto message to io.Writer as JSON object.

func WriteMsgArray added in v0.32.0

func WriteMsgArray[T any, M Message[T]](w io.Writer, msgs []M) error

WriteMsgArray - write array of proto messages to io.Writer as a JSON array.

Types

type Message added in v0.32.0

type Message[T any] interface {
	proto.Message
	*T
}

Jump to

Keyboard shortcuts

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