Documentation
¶
Index ¶
- Constants
- Variables
- func DeepEquals(s1, s2 []byte) (bool, error)
- func Delete(json []byte, key string) (tmp []byte, err error)
- func Set(json []byte, key string, value interface{}) (tmp []byte, err error)
- func SetRaw(json []byte, key string, value interface{}) (tmp []byte, err error)
- func Unmarshal(data []byte, v interface{}) error
- func Valid(data []byte) bool
- type Result
Constants ¶
View Source
const JSONInvalidData = errors.Error("JSONInvalidData")
JSONInvalidData is returned when JSON functions return invalid JSON.
View Source
const JSONSetRawInvalid = errors.Error("JSONSetRawInvalid")
JSONSetRawInvalid is returned when SetRaw receives an invalid input.
Variables ¶
View Source
var Types = map[gjson.Type]string{
0: "Null",
1: "Boolean",
2: "Number",
3: "String",
4: "Boolean",
5: "JSON",
}
Types maps gjson.Type to strings.
Functions ¶
func DeepEquals ¶
DeepEquals performs a deep equals comparison between two byte arrays.
Types ¶
Click to show internal directories.
Click to hide internal directories.