json2

package
v3.0.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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