json2

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 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 any) 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