jsonutils

package
v0.0.0-...-02879a1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecursiveToJSON

func RecursiveToJSON(v interface{}) (r interface{})

Go refuses to convert map[interface{}]interface{} to JSON because JSON only support string keys So it's necessary to recursively convert all map[interface]interface{} to map[string]interface{}

Types

type JSONArray

type JSONArray []interface{}

func (JSONArray) Value

func (a JSONArray) Value() (driver.Value, error)

type JSONMap

type JSONMap map[string]interface{}

func (JSONMap) Value

func (m JSONMap) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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