json

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeWithNumber added in v0.4.0

func DecodeWithNumber(jsonBytes []byte, dst interface{}) error

func Marshal added in v0.4.0

func Marshal(obj interface{}) ([]byte, error)

func MarshalIndent added in v0.20.0

func MarshalIndent(obj interface{}) ([]byte, error)

func MarshalJSONStr

func MarshalJSONStr(obj interface{}) (string, error)

func Pretty added in v0.4.0

func Pretty(obj interface{}) (string, error)

func Unmarshal added in v0.4.0

func Unmarshal(jsonBytes []byte, dst interface{}) error

func WriteJSON

func WriteJSON(obj interface{}, outPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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