convert

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonToMap

func JsonToMap(r io.Reader) (mData map[string]interface{})

json转map

func MapToJson

func MapToJson(m map[string]interface{}) (jVal []byte)

MAP转Json

func MapToStruct

func MapToStruct(mapInstance map[string]interface{}, structI interface{}) (err error)

Map转结构体

func StructToMap

func StructToMap(obj interface{}) (data map[string]interface{})

结构体转MAP

Types

This section is empty.

Jump to

Keyboard shortcuts

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