Documentation ¶
Index ¶
- Variables
- type JsonArray
- func (ja JsonArray) GetArrayByIndex(index int) (JsonArray, error)
- func (ja JsonArray) GetBoolByIndex(index int) (bool, error)
- func (ja JsonArray) GetFloat64ByIndex(index int) (float64, error)
- func (ja JsonArray) GetObjectByIndex(index int) (JsonObject, error)
- func (ja JsonArray) GetStringByIndex(index int) (string, error)
- func (ja *JsonArray) Scan(src interface{}) error
- func (ja JsonArray) String() string
- func (ja JsonArray) ToArrayOfArray() ([]JsonArray, error)
- func (ja JsonArray) ToBoolArray() ([]bool, error)
- func (ja JsonArray) ToNumberArray() ([]float64, error)
- func (ja JsonArray) ToObjectArray() ([]JsonObject, error)
- func (ja JsonArray) ToStringArray() ([]string, error)
- func (ja JsonArray) Value() (driver.Value, error)
- type JsonObject
- func (j JsonObject) GetBool(key string) (bool, error)
- func (j JsonObject) GetBoolDefault(key string, defaultValue bool) bool
- func (j JsonObject) GetFloat64(key string) (float64, error)
- func (j JsonObject) GetFloat64Default(key string, defaultValue float64) float64
- func (j JsonObject) GetInt(key string) (int, error)
- func (j JsonObject) GetInt64(key string) (int64, error)
- func (j JsonObject) GetInt64Default(key string, def int64) int64
- func (j JsonObject) GetIntDefault(key string, def int) int
- func (j JsonObject) GetJsonArray(key string) (JsonArray, error)
- func (j JsonObject) GetJsonObject(key string) (JsonObject, error)
- func (j JsonObject) GetString(key string) (string, error)
- func (j JsonObject) GetStringDefault(key string, def string) string
- func (j JsonObject) HasKey(key string) bool
- func (j JsonObject) HasNotNilKey(key string) bool
- func (j *JsonObject) Scan(src interface{}) error
- func (j JsonObject) String() string
- func (j JsonObject) Value() (driver.Value, error)
- type Time
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type JsonArray ¶
type JsonArray []interface{}
func (JsonArray) GetArrayByIndex ¶
func (JsonArray) GetFloat64ByIndex ¶
func (JsonArray) GetObjectByIndex ¶
func (ja JsonArray) GetObjectByIndex(index int) (JsonObject, error)
func (JsonArray) ToArrayOfArray ¶
func (JsonArray) ToBoolArray ¶
func (JsonArray) ToNumberArray ¶
func (JsonArray) ToObjectArray ¶
func (ja JsonArray) ToObjectArray() ([]JsonObject, error)
func (JsonArray) ToStringArray ¶
type JsonObject ¶
type JsonObject map[string]interface{}
func (JsonObject) GetBoolDefault ¶
func (j JsonObject) GetBoolDefault(key string, defaultValue bool) bool
func (JsonObject) GetFloat64 ¶
func (j JsonObject) GetFloat64(key string) (float64, error)
func (JsonObject) GetFloat64Default ¶
func (j JsonObject) GetFloat64Default(key string, defaultValue float64) float64
func (JsonObject) GetInt64Default ¶
func (j JsonObject) GetInt64Default(key string, def int64) int64
func (JsonObject) GetIntDefault ¶
func (j JsonObject) GetIntDefault(key string, def int) int
func (JsonObject) GetJsonArray ¶
func (j JsonObject) GetJsonArray(key string) (JsonArray, error)
func (JsonObject) GetJsonObject ¶
func (j JsonObject) GetJsonObject(key string) (JsonObject, error)
func (JsonObject) GetStringDefault ¶
func (j JsonObject) GetStringDefault(key string, def string) string
func (JsonObject) HasKey ¶
func (j JsonObject) HasKey(key string) bool
func (JsonObject) HasNotNilKey ¶
func (j JsonObject) HasNotNilKey(key string) bool
func (*JsonObject) Scan ¶
func (j *JsonObject) Scan(src interface{}) error
func (JsonObject) String ¶
func (j JsonObject) String() string
Click to show internal directories.
Click to hide internal directories.