jsonutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadJsonValFromDecodedBytes

func ReadJsonValFromDecodedBytes(f interface{}, keys string) string

从已解组json的bytes数组中读取指定值,嵌套key使用":"分隔,如"AppSettings:DBConnectionString"

func ReadJsonValue

func ReadJsonValue(jsonByte []byte, keys string) string

读取json指定key的值,嵌套key使用":"分隔,如"AppSettings:DBConnectionString"

func ReadJsonValueFromJsonString

func ReadJsonValueFromJsonString(json string, keys string) string

从json字符串中读取指定值,嵌套key使用":"分隔,如"AppSettings:DBConnectionString"

func SerializeJson

func SerializeJson(val *interface{}) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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