utilproto

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(one proto.Message, two proto.Message) bool

Equal checks if the two messages are equal.

func MarshalJSON

func MarshalJSON(message proto.Message) ([]byte, error)

MarshalJSON marshals the message to JSON format.

func MarshalJSONIndent

func MarshalJSONIndent(message proto.Message) ([]byte, error)

MarshalJSONIndent marshals the message to JSON format with indents.

func MarshalJSONOrigName added in v0.10.0

func MarshalJSONOrigName(message proto.Message) ([]byte, error)

MarshalJSONOrigName marshals the message to JSON format with original .proto names as keys.

func MarshalText

func MarshalText(message proto.Message) ([]byte, error)

MarshalText marshals the message to text format.

func MarshalWire

func MarshalWire(message proto.Message) ([]byte, error)

MarshalWire marshals the message to wire format.

func MarshalWireDeterministic added in v0.9.0

func MarshalWireDeterministic(message proto.Message) ([]byte, error)

MarshalWireDeterministic marshals the message to wire format deterministically.

func UnmarshalJSON

func UnmarshalJSON(data []byte, message proto.Message) error

UnmarshalJSON unmarshals the message from JSON format.

func UnmarshalWire

func UnmarshalWire(data []byte, message proto.Message) error

UnmarshalWire unmarshals the message from wire format.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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