JsonUtils

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalToString

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

func Pretty

func Pretty(v interface{}) []byte

func PrettyJson

func PrettyJson(jsonBytes []byte) []byte

func PrettyWithColor

func PrettyWithColor(v interface{}) []byte

func ToMap added in v0.3.3

func ToMap(v interface{}) (map[string]interface{}, error)

func Unmarshal

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

func UnmarshalString added in v0.4.0

func UnmarshalString(data string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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