jsonpb

package module
v3.7.5 Latest Latest
Warning

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

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

README

micro-codec-json

Documentation

Overview

Package jsonpb provides a json codec

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMarshalOptions = jsonpb.MarshalOptions{
		UseEnumNumbers:  false,
		EmitUnpopulated: false,
		UseProtoNames:   true,
		AllowPartial:    false,
	}

	DefaultUnmarshalOptions = jsonpb.UnmarshalOptions{
		DiscardUnknown: false,
		AllowPartial:   false,
	}
)

Functions

func MarshalOptions added in v3.7.3

func MarshalOptions(o jsonpb.MarshalOptions) codec.Option

func NewCodec

func NewCodec(opts ...codec.Option) codec.Codec

func UnmarshalOptions added in v3.7.3

func UnmarshalOptions(o jsonpb.UnmarshalOptions) codec.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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