Documentation ¶
Index ¶
- func Contains(container, containee map[string]interface{}) bool
- func ConvertJSONStringsToMaps(merged *map[string]interface{})
- func ConvertMapToJson(m map[string]interface{}) ([]byte, bool)
- func IsJSONString(jsonStr string) bool
- func JsonStringToMap(jsonStr string) map[string]interface{}
- func StructToMap(obj interface{}) (newMap map[string]interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Contains checks if the containee map is contained within the container map, including nested JSON structures.
func ConvertJSONStringsToMaps ¶
func ConvertJSONStringsToMaps(merged *map[string]interface{})
ConvertJSONStringsToMaps converts JSON strings within a map to maps for JSON data processing.
func ConvertMapToJson ¶ added in v1.0.0
ConvertMapToJson converts a map to a JSON byte slice.
func IsJSONString ¶
IsJSONString checks if a given string is a valid JSON.
func JsonStringToMap ¶
JsonStringToMap converts a JSON string to a map.
func StructToMap ¶
StructToMap converts a struct to a map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.