json2

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package json2 provides some improvements over the original json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalIndentPB

func MarshalIndentPB(pb proto.Message, indent string) ([]byte, error)

MarshalIndentPB MarshalIndents a proto.

func MarshalPB

func MarshalPB(pb proto.Message) ([]byte, error)

MarshalPB marshals a proto.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal wraps json.Unmarshal, but returns errors that also mention the line number. This function is not very efficient and should not be used for high QPS operations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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