protobuf

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

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package protobuf contains function(s) pertaining to protobufs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustMarshalAny

func MustMarshalAny(pb proto.Message) *any.Any

MustMarshalAny marshals a protobuf Message into an Any type. It panics if that operation fails.

func MustToJSON

func MustToJSON(pb proto.Message) string

MustToJSON marshals a protobuf Message to a JSON string representation and panics if the marshalling fails

func ToJSON

func ToJSON(pb proto.Message) (string, error)

ToJSON marshals a protobuf Message to a JSON string representation

Types

This section is empty.

Jump to

Keyboard shortcuts

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