go-vitess.v1: gopkg.in/src-d/go-vitess.v1/json2 Index | Files

package json2

import "gopkg.in/src-d/go-vitess.v1/json2"

Package json2 provides some improvements over the original json.


Package Files

marshal.go unmarshal.go

func MarshalIndentPB Uses

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

MarshalIndentPB MarshalIndents a proto.

func MarshalPB Uses

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

MarshalPB marshals a proto.

func Unmarshal Uses

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.

Package json2 imports 5 packages (graph) and is imported by 9 packages. Updated 2019-06-13. Refresh now. Tools for package owners.