Documentation ¶
Index ¶
- Variables
- func GetBoolField(jsonData []byte, path string) bool
- func GetBoolFieldFromString(jsonStr, path string) bool
- func GetBoolSliceField(jsonData []byte, path string) (s []bool)
- func GetBoolSliceFieldFromString(jsonStr, path string) (s []bool)
- func GetFloat64Field(jsonData []byte, path string) float64
- func GetFloat64FieldFromString(jsonStr, path string) float64
- func GetFloat64SliceField(jsonData []byte, path string) (s []float64)
- func GetFloat64SliceFieldFromString(jsonStr, path string) (s []float64)
- func GetInt64Field(jsonData []byte, path string) int64
- func GetInt64FieldFromString(jsonStr, path string) int64
- func GetInt64SliceField(jsonData []byte, path string) (s []int64)
- func GetInt64SliceFieldFromString(jsonStr, path string) (s []int64)
- func GetStringField(jsonData []byte, path string) string
- func GetStringFieldFromString(jsonStr, path string) string
- func GetStringSliceField(jsonData []byte, path string) (s []string)
- func GetStringSliceFieldFromString(jsonStr, path string) (s []string)
Constants ¶
This section is empty.
Variables ¶
GetField
@param path 如果是嵌套的内部字段,可以通过'.'组合
字段类型判断:
Result.Type Result.IsBool() Result.IsArray() Result.IsObject()
Functions ¶
func GetBoolField ¶
func GetBoolFieldFromString ¶
func GetBoolSliceField ¶
func GetFloat64Field ¶
func GetFloat64SliceField ¶
func GetInt64Field ¶
func GetInt64FieldFromString ¶
func GetInt64SliceField ¶
func GetStringField ¶
func GetStringSliceField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.