jsonpb

package module
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

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:   false,
		AllowPartial:    false,
	}

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

Functions

func MarshalOptions

func MarshalOptions(o jsonpb.MarshalOptions) codec.Option

func NewCodec

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

func UnmarshalOptions

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