jsonutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceToStruct

func InterfaceToStruct(input interface{}, obj interface{}) (err error)

func JsonStrToStruct

func JsonStrToStruct(input string, obj interface{}) (err error)

JsonStrToStruct json字符串转结构体

func MapToStruct

func MapToStruct(input map[string]interface{}, obj interface{}) (err error)

func StructToJson

func StructToJson(obj interface{}) (b []byte, err error)

StructToJson 结构体转json

func StructToJsonString

func StructToJsonString(obj interface{}) (j string)

StructToJsonString 结构体转json

func StructToMap

func StructToMap(input interface{}) (obj map[string]interface{}, err error)

StructToMap 结构体转map

Types

This section is empty.

Jump to

Keyboard shortcuts

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