Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2019 Changes in this version + const Array + const Boolean + const NotExist + const Null + const Number + const Object + const String + const Unknown + var KeyPathNotFoundError = errors.New("Key path not found") + var MalformedArrayError = errors.New("Value is array, but can't find closing ']' symbol") + var MalformedJsonError = errors.New("Malformed JSON error") + var MalformedObjectError = errors.New("Value looks like object, but can't find closing '}' symbol") + var MalformedStringError = errors.New("Value is string, but can't find closing '\"' symbol") + var MalformedStringEscapeError = errors.New("Encountered an invalid escape sequence in a string") + var MalformedValueError = errors.New(...) + var OverflowIntegerError = errors.New("Value is number, but overflowed while parsing") + var UnknownValueTypeError = errors.New("Unknown value type") + func ArrayEach(data []byte, cb func(value []byte, dataType ValueType, offset int, err error), ...) (offset int, err error) + func Delete(data []byte, keys ...string) []byte + func EachKey(data []byte, cb func(int, []byte, ValueType, error), paths ...[]string) int + func FlattenObjectEach(data []byte, path []byte, ...) (err error) + func GetBoolean(data []byte, keys ...string) (val bool, err error) + func GetFloat(data []byte, keys ...string) (val float64, err error) + func GetInt(data []byte, keys ...string) (val int64, err error) + func GetString(data []byte, keys ...string) (val string, err error) + func GetUnsafeString(data []byte, keys ...string) (val string, err error) + func ObjectEach(data []byte, ...) (err error) + func ParseBoolean(b []byte) (bool, error) + func ParseFloat(b []byte) (float64, error) + func ParseInt(b []byte) (int64, error) + func ParseString(b []byte) (string, error) + func Set(data []byte, setValue []byte, keys ...string) (value []byte, err error) + func StringToBytes(s string) []byte + func Unescape(in, out []byte) ([]byte, error) + type ValueType int + func Get(data []byte, keys ...string) (value []byte, dataType ValueType, offset int, err error) + func (vt ValueType) String() string