vjson

package
v0.0.0-...-ebd5e3c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteArrayConver

func ByteArrayConver(bytes []byte, out interface{}) error

func Convert

func Convert(in interface{}, out interface{}) error

Convert is use convert map[string]interface object to struct

func MapToJson

func MapToJson(data map[string]interface{}) string

func Prettify

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

func PrettifyString

func PrettifyString(i interface{}) string

func Recover

func Recover(in interface{}) error

Recover is use convert map[string]interface object to struct

func StructToString

func StructToString(data interface{}) string

func ToIntArray

func ToIntArray(data string) []int

ToIntArray JSONstring (json转IntList)

func ToMap

func ToMap(data string) map[string]interface{}

ToMap JSON (json转map)

Types

This section is empty.

Jump to

Keyboard shortcuts

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