Documentation ¶
Overview ¶
Code generated by scripts/generate_go_funcs; DO NOT EDIT.
Index ¶
- Constants
- type JSON
- func (j *JSON) Append(value interface{}, keys ...interface{}) error
- func (j *JSON) Clear()
- func (j *JSON) Get(keys ...interface{}) (ret interface{})
- func (j *JSON) GetArray(keys ...interface{}) (ret []interface{})
- func (j *JSON) GetBlob(params ...string) (ret string, e error)
- func (j *JSON) GetBool(keys ...interface{}) (ret bool)
- func (j *JSON) GetBoolArray(keys ...interface{}) (ret []bool)
- func (j *JSON) GetBoolMap(keys ...interface{}) (ret map[string]bool)
- func (j *JSON) GetFloat32(keys ...interface{}) (ret float32)
- func (j *JSON) GetFloat32Array(keys ...interface{}) (ret []float32)
- func (j *JSON) GetFloat32Map(keys ...interface{}) (ret map[string]float32)
- func (j *JSON) GetFloat64(keys ...interface{}) (ret float64)
- func (j *JSON) GetFloat64Array(keys ...interface{}) (ret []float64)
- func (j *JSON) GetFloat64Map(keys ...interface{}) (ret map[string]float64)
- func (j *JSON) GetInt(keys ...interface{}) (ret int)
- func (j *JSON) GetInt16(keys ...interface{}) (ret int16)
- func (j *JSON) GetInt16Array(keys ...interface{}) (ret []int16)
- func (j *JSON) GetInt16Map(keys ...interface{}) (ret map[string]int16)
- func (j *JSON) GetInt32(keys ...interface{}) (ret int32)
- func (j *JSON) GetInt32Array(keys ...interface{}) (ret []int32)
- func (j *JSON) GetInt32Map(keys ...interface{}) (ret map[string]int32)
- func (j *JSON) GetInt64(keys ...interface{}) (ret int64)
- func (j *JSON) GetInt64Array(keys ...interface{}) (ret []int64)
- func (j *JSON) GetInt64Map(keys ...interface{}) (ret map[string]int64)
- func (j *JSON) GetInt8(keys ...interface{}) (ret int8)
- func (j *JSON) GetInt8Array(keys ...interface{}) (ret []int8)
- func (j *JSON) GetInt8Map(keys ...interface{}) (ret map[string]int8)
- func (j *JSON) GetIntArray(keys ...interface{}) (ret []int)
- func (j *JSON) GetIntMap(keys ...interface{}) (ret map[string]int)
- func (j *JSON) GetKeys(keys ...interface{}) (ret []string)
- func (j *JSON) GetMap(keys ...interface{}) (ret map[string]interface{})
- func (j *JSON) GetString(keys ...interface{}) (ret string)
- func (j *JSON) GetStringArray(keys ...interface{}) (ret []string)
- func (j *JSON) GetStringMap(keys ...interface{}) (ret map[string]string)
- func (j *JSON) GetUint(keys ...interface{}) (ret uint)
- func (j *JSON) GetUint16(keys ...interface{}) (ret uint16)
- func (j *JSON) GetUint16Array(keys ...interface{}) (ret []uint16)
- func (j *JSON) GetUint16Map(keys ...interface{}) (ret map[string]uint16)
- func (j *JSON) GetUint32(keys ...interface{}) (ret uint32)
- func (j *JSON) GetUint32Array(keys ...interface{}) (ret []uint32)
- func (j *JSON) GetUint32Map(keys ...interface{}) (ret map[string]uint32)
- func (j *JSON) GetUint64(keys ...interface{}) (ret uint64)
- func (j *JSON) GetUint64Array(keys ...interface{}) (ret []uint64)
- func (j *JSON) GetUint64Map(keys ...interface{}) (ret map[string]uint64)
- func (j *JSON) GetUint8(keys ...interface{}) (ret uint8)
- func (j *JSON) GetUint8Array(keys ...interface{}) (ret []uint8)
- func (j *JSON) GetUint8Map(keys ...interface{}) (ret map[string]uint8)
- func (j *JSON) GetUintArray(keys ...interface{}) (ret []uint)
- func (j *JSON) GetUintMap(keys ...interface{}) (ret map[string]uint)
- func (j *JSON) HasKey(keys ...interface{}) bool
- func (j *JSON) MustGet(keys ...interface{}) (interface{}, error)
- func (j *JSON) MustGetArray(keys ...interface{}) (ret []interface{}, e error)
- func (j *JSON) MustGetBool(keys ...interface{}) (ret bool, e error)
- func (j *JSON) MustGetBoolArray(keys ...interface{}) (ret []bool, e error)
- func (j *JSON) MustGetBoolMap(keys ...interface{}) (ret map[string]bool, e error)
- func (j *JSON) MustGetFloat32(keys ...interface{}) (ret float32, e error)
- func (j *JSON) MustGetFloat32Array(keys ...interface{}) (ret []float32, e error)
- func (j *JSON) MustGetFloat32Map(keys ...interface{}) (ret map[string]float32, e error)
- func (j *JSON) MustGetFloat64(keys ...interface{}) (ret float64, e error)
- func (j *JSON) MustGetFloat64Array(keys ...interface{}) (ret []float64, e error)
- func (j *JSON) MustGetFloat64Map(keys ...interface{}) (ret map[string]float64, e error)
- func (j *JSON) MustGetInt(keys ...interface{}) (ret int, e error)
- func (j *JSON) MustGetInt16(keys ...interface{}) (ret int16, e error)
- func (j *JSON) MustGetInt16Array(keys ...interface{}) (ret []int16, e error)
- func (j *JSON) MustGetInt16Map(keys ...interface{}) (ret map[string]int16, e error)
- func (j *JSON) MustGetInt32(keys ...interface{}) (ret int32, e error)
- func (j *JSON) MustGetInt32Array(keys ...interface{}) (ret []int32, e error)
- func (j *JSON) MustGetInt32Map(keys ...interface{}) (ret map[string]int32, e error)
- func (j *JSON) MustGetInt64(keys ...interface{}) (ret int64, e error)
- func (j *JSON) MustGetInt64Array(keys ...interface{}) (ret []int64, e error)
- func (j *JSON) MustGetInt64Map(keys ...interface{}) (ret map[string]int64, e error)
- func (j *JSON) MustGetInt8(keys ...interface{}) (ret int8, e error)
- func (j *JSON) MustGetInt8Array(keys ...interface{}) (ret []int8, e error)
- func (j *JSON) MustGetInt8Map(keys ...interface{}) (ret map[string]int8, e error)
- func (j *JSON) MustGetIntArray(keys ...interface{}) (ret []int, e error)
- func (j *JSON) MustGetIntMap(keys ...interface{}) (ret map[string]int, e error)
- func (j *JSON) MustGetKeys(keys ...interface{}) (ret []string, e error)
- func (j *JSON) MustGetMap(keys ...interface{}) (ret map[string]interface{}, e error)
- func (j *JSON) MustGetString(keys ...interface{}) (ret string, e error)
- func (j *JSON) MustGetStringArray(keys ...interface{}) (ret []string, e error)
- func (j *JSON) MustGetStringMap(keys ...interface{}) (ret map[string]string, e error)
- func (j *JSON) MustGetUint(keys ...interface{}) (ret uint, e error)
- func (j *JSON) MustGetUint16(keys ...interface{}) (ret uint16, e error)
- func (j *JSON) MustGetUint16Array(keys ...interface{}) (ret []uint16, e error)
- func (j *JSON) MustGetUint16Map(keys ...interface{}) (ret map[string]uint16, e error)
- func (j *JSON) MustGetUint32(keys ...interface{}) (ret uint32, e error)
- func (j *JSON) MustGetUint32Array(keys ...interface{}) (ret []uint32, e error)
- func (j *JSON) MustGetUint32Map(keys ...interface{}) (ret map[string]uint32, e error)
- func (j *JSON) MustGetUint64(keys ...interface{}) (ret uint64, e error)
- func (j *JSON) MustGetUint64Array(keys ...interface{}) (ret []uint64, e error)
- func (j *JSON) MustGetUint64Map(keys ...interface{}) (ret map[string]uint64, e error)
- func (j *JSON) MustGetUint8(keys ...interface{}) (ret uint8, e error)
- func (j *JSON) MustGetUint8Array(keys ...interface{}) (ret []uint8, e error)
- func (j *JSON) MustGetUint8Map(keys ...interface{}) (ret map[string]uint8, e error)
- func (j *JSON) MustGetUintArray(keys ...interface{}) (ret []uint, e error)
- func (j *JSON) MustGetUintMap(keys ...interface{}) (ret map[string]uint, e error)
- func (j *JSON) Set(value interface{}, keys ...interface{}) error
- func (j *JSON) SetBlob(blob ...string) error
- func (j *JSON) SetEscapeHTML(escape bool)
- func (j *JSON) String() (ret string)
Constants ¶
const Version = "1.5.2"
Version is the package version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON is a struct that holds a JSON blob.
func (*JSON) Append ¶ added in v1.2.3
Append will append the specified value to the specified key in the JSON blob, if it is an array.
func (*JSON) Get ¶
func (j *JSON) Get(keys ...interface{}) (ret interface{})
Get will return the value for the specified key(s) as a interface{}.
func (*JSON) GetArray ¶
func (j *JSON) GetArray(keys ...interface{}) (ret []interface{})
GetArray will return an array for the specified key(s) as an []interface{}.
func (*JSON) GetBlob ¶
GetBlob will return the JSON blob as a string. An indentation string and a prefix string are accepted as optionally parameters.
func (*JSON) GetBoolArray ¶
GetBoolArray will return an array for the specified key(s) as a []bool.
func (*JSON) GetBoolMap ¶
GetBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSON) GetFloat32 ¶
GetFloat32 will return the value for the specified key(s) as a float32.
func (*JSON) GetFloat32Array ¶
GetFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSON) GetFloat32Map ¶
GetFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSON) GetFloat64 ¶
GetFloat64 will return the value for the specified key(s) as a float64.
func (*JSON) GetFloat64Array ¶
GetFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSON) GetFloat64Map ¶
GetFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSON) GetInt16Array ¶
GetInt16Array will return an array for the specified key(s) as a []int16.
func (*JSON) GetInt16Map ¶
GetInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSON) GetInt32Array ¶
GetInt32Array will return an array for the specified key(s) as a []int32.
func (*JSON) GetInt32Map ¶
GetInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSON) GetInt64Array ¶
GetInt64Array will return an array for the specified key(s) as a []int64.
func (*JSON) GetInt64Map ¶
GetInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSON) GetInt8 ¶ added in v1.2.9
GetInt8 will return the value for the specified key(s) as a int8.
func (*JSON) GetInt8Array ¶ added in v1.2.9
GetInt8Array will return an array for the specified key(s) as a []int8.
func (*JSON) GetInt8Map ¶ added in v1.2.9
GetInt8Map will return a map for the specified key(s) as a map[string]int8.
func (*JSON) GetIntArray ¶
GetIntArray will return an array for the specified key(s) as a []int.
func (*JSON) GetKeys ¶ added in v1.1.1
GetKeys will return a list of valid keys if the specified key returns an array or map.
func (*JSON) GetMap ¶
GetMap will return a map for the specified key(s) as a map[string]interface{}.
func (*JSON) GetStringArray ¶
GetStringArray will return an array for the specified key(s) as a []string.
func (*JSON) GetStringMap ¶
GetStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSON) GetUint16Array ¶
GetUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSON) GetUint16Map ¶
GetUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSON) GetUint32Array ¶
GetUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSON) GetUint32Map ¶
GetUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSON) GetUint64Array ¶
GetUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSON) GetUint64Map ¶
GetUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSON) GetUint8 ¶ added in v1.2.9
GetUint8 will return the value for the specified key(s) as a uint8.
func (*JSON) GetUint8Array ¶ added in v1.2.9
GetUint8Array will return an array for the specified key(s) as a []uint8.
func (*JSON) GetUint8Map ¶ added in v1.2.9
GetUint8Map will return a map for the specified key(s) as a map[string]uint8.
func (*JSON) GetUintArray ¶
GetUintArray will return an array for the specified key(s) as a []uint.
func (*JSON) GetUintMap ¶
GetUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSON) HasKey ¶ added in v1.1.1
HasKey will return true if the JSON blob has the specified key, false otherwise.
func (*JSON) MustGet ¶ added in v1.2.0
MustGet will return the value for the specified key(s) as a interface{}.
func (*JSON) MustGetArray ¶ added in v1.2.0
MustGetArray will return an array for the specified key(s) as an []interface{}.
func (*JSON) MustGetBool ¶ added in v1.2.0
MustGetBool will return the value for the specified key(s) as a bool.
func (*JSON) MustGetBoolArray ¶ added in v1.2.0
MustGetBoolArray will return an array for the specified key(s) as a []bool.
func (*JSON) MustGetBoolMap ¶ added in v1.2.0
MustGetBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSON) MustGetFloat32 ¶ added in v1.2.0
MustGetFloat32 will return the value for the specified key(s) as a float32.
func (*JSON) MustGetFloat32Array ¶ added in v1.2.0
MustGetFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSON) MustGetFloat32Map ¶ added in v1.2.0
MustGetFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSON) MustGetFloat64 ¶ added in v1.2.0
MustGetFloat64 will return the value for the specified key(s) as a float64.
func (*JSON) MustGetFloat64Array ¶ added in v1.2.0
MustGetFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSON) MustGetFloat64Map ¶ added in v1.2.0
MustGetFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSON) MustGetInt ¶ added in v1.2.0
MustGetInt will return the value for the specified key(s) as a int.
func (*JSON) MustGetInt16 ¶ added in v1.2.0
MustGetInt16 will return the value for the specified key(s) as a int16.
func (*JSON) MustGetInt16Array ¶ added in v1.2.0
MustGetInt16Array will return an array for the specified key(s) as a []int16.
func (*JSON) MustGetInt16Map ¶ added in v1.2.0
MustGetInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSON) MustGetInt32 ¶ added in v1.2.0
MustGetInt32 will return the value for the specified key(s) as a int32.
func (*JSON) MustGetInt32Array ¶ added in v1.2.0
MustGetInt32Array will return an array for the specified key(s) as a []int32.
func (*JSON) MustGetInt32Map ¶ added in v1.2.0
MustGetInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSON) MustGetInt64 ¶ added in v1.2.0
MustGetInt64 will return the value for the specified key(s) as a int64.
func (*JSON) MustGetInt64Array ¶ added in v1.2.0
MustGetInt64Array will return an array for the specified key(s) as a []int64.
func (*JSON) MustGetInt64Map ¶ added in v1.2.0
MustGetInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSON) MustGetInt8 ¶ added in v1.2.9
MustGetInt8 will return the value for the specified key(s) as a int8.
func (*JSON) MustGetInt8Array ¶ added in v1.2.9
MustGetInt8Array will return an array for the specified key(s) as a []int8.
func (*JSON) MustGetInt8Map ¶ added in v1.2.9
MustGetInt8Map will return a map for the specified key(s) as a map[string]int8.
func (*JSON) MustGetIntArray ¶ added in v1.2.0
MustGetIntArray will return an array for the specified key(s) as a []int.
func (*JSON) MustGetIntMap ¶ added in v1.2.0
MustGetIntMap will return a map for the specified key(s) as a map[string]int.
func (*JSON) MustGetKeys ¶ added in v1.2.0
MustGetKeys will return a list of valid keys if the specified key returns an array or map.
func (*JSON) MustGetMap ¶ added in v1.2.0
MustGetMap will return a map for the specified key(s) as a map[string]interface{}.
func (*JSON) MustGetString ¶ added in v1.2.0
MustGetString will return the value for the specified key(s) as a string.
func (*JSON) MustGetStringArray ¶ added in v1.2.0
MustGetStringArray will return an array for the specified key(s) as a []string.
func (*JSON) MustGetStringMap ¶ added in v1.2.0
MustGetStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSON) MustGetUint ¶ added in v1.2.0
MustGetUint will return the value for the specified key(s) as a uint.
func (*JSON) MustGetUint16 ¶ added in v1.2.0
MustGetUint16 will return the value for the specified key(s) as a uint16.
func (*JSON) MustGetUint16Array ¶ added in v1.2.0
MustGetUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSON) MustGetUint16Map ¶ added in v1.2.0
MustGetUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSON) MustGetUint32 ¶ added in v1.2.0
MustGetUint32 will return the value for the specified key(s) as a uint32.
func (*JSON) MustGetUint32Array ¶ added in v1.2.0
MustGetUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSON) MustGetUint32Map ¶ added in v1.2.0
MustGetUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSON) MustGetUint64 ¶ added in v1.2.0
MustGetUint64 will return the value for the specified key(s) as a uint64.
func (*JSON) MustGetUint64Array ¶ added in v1.2.0
MustGetUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSON) MustGetUint64Map ¶ added in v1.2.0
MustGetUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSON) MustGetUint8 ¶ added in v1.2.9
MustGetUint8 will return the value for the specified key(s) as a uint8.
func (*JSON) MustGetUint8Array ¶ added in v1.2.9
MustGetUint8Array will return an array for the specified key(s) as a []uint8.
func (*JSON) MustGetUint8Map ¶ added in v1.2.9
MustGetUint8Map will return a map for the specified key(s) as a map[string]uint8.
func (*JSON) MustGetUintArray ¶ added in v1.2.0
MustGetUintArray will return an array for the specified key(s) as a []uint.
func (*JSON) MustGetUintMap ¶ added in v1.2.0
MustGetUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSON) SetBlob ¶ added in v1.0.1
SetBlob will replace the underlying map[string]interface{} with a new JSON blob.
func (*JSON) SetEscapeHTML ¶ added in v1.0.6
SetEscapeHTML will set whether or not Marshalling should escape HTML special characters.