json

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshaler = jsonpb.Marshaler{}

Marshaler is a global marshaler that sets our default options

View Source
var Unmarshaler = jsonpb.Unmarshaler{}

Unmarshaler is a global unmarshaler that sets our default options

Functions

func Marshal

func Marshal(m proto.Message) ([]byte, error)

Marshal turns a gogo proto.Message into json with the default marshaler

func Unmarshal

func Unmarshal(in []byte, m proto.Message) error

Unmarshal turns a json message into a proto.Message with the default marshaler

Types

This section is empty.

Jump to

Keyboard shortcuts

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