jsonutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffByte

func DiffByte(a, b []byte) (bool, string)

func DiffByteWithConsole

func DiffByteWithConsole(a, b []byte) (bool, string)

func DiffString

func DiffString(a, b string) (bool, string)

func DiffStringWithConsole

func DiffStringWithConsole(a, b string) (bool, string)

func GetJsonPath

func GetJsonPath(m interface{}, name string, res map[string]interface{}, path string) (string, map[string]interface{})

func HandleJsonArray

func HandleJsonArray(m interface{}, key string, nVal interface{}, path string) (interface{}, error)

func HandleJsonMap

func HandleJsonMap(m interface{}, key string, val interface{}, path string) (interface{}, error)

func Json2Map

func Json2Map(jsonStr string) (map[string]interface{}, error)

func JsonDecode

func JsonDecode(source interface{}, dst interface{}) error

func JsonMarshal

func JsonMarshal(v interface{}) string

func JsonMarshal2interface

func JsonMarshal2interface(from, to interface{}) error

func JsonMarshalIndent

func JsonMarshalIndent(v interface{}) string

func UpdateJson

func UpdateJson(path string, m interface{}, val interface{}) (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