Documentation ¶
Index ¶
- Variables
- func Marshal(r interface{}) ([]byte, error)
- func MarshalV0(v interface{}) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalV0(data []byte, r interface{}) error
- type ArrayIter
- type Error
- type ObjectIter
- type StructField
- type StructMap
- type Type
- type Value
- func (v *Value) ArrayIter() (*ArrayIter, error)
- func (v *Value) Bool() (bool, error)
- func (v *Value) Buffer() []byte
- func (v *Value) Bytes() []byte
- func (v *Value) CastBool() (bool, error)
- func (v *Value) CheckBytes() ([]byte, error)
- func (v *Value) CheckString() (string, error)
- func (v *Value) Float64() (float64, error)
- func (v *Value) Get(ks ...interface{}) (*Value, error)
- func (v *Value) Int() (int, error)
- func (v *Value) Int64() (int64, error)
- func (v *Value) IsNull() (bool, error)
- func (v *Value) MustBool() bool
- func (v *Value) MustCheckBytes() []byte
- func (v *Value) MustCheckString() string
- func (v *Value) MustFloat64() float64
- func (v *Value) MustGet(ks ...interface{}) *Value
- func (v *Value) MustInt() int
- func (v *Value) MustInt64() int64
- func (v *Value) MustUint() uint
- func (v *Value) MustUint64() uint64
- func (v *Value) ObjectIter() (*ObjectIter, error)
- func (v *Value) String() string
- func (v *Value) Type() (Type, error)
- func (v *Value) Uint() (uint, error)
- func (v *Value) Uint64() (uint64, error)
- func (v *Value) Unmarshal(r interface{}) error
- func (v *Value) UnmarshalV0(r interface{}) error
- type WriterV0
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnexpectedChar = errors.New("unexpected char") ErrOverflow = errors.New("type overflow") ErrOutOfRange = errors.New("out of range") ErrExpectedValue = errors.New("expected value") ErrUnexpectedEnd = errors.New("unexpected end") ErrNoSuchKey = errors.New("no such key") ErrConversion = errors.New("type conversion") )
Functions ¶
func UnmarshalV0 ¶
Types ¶
type ObjectIter ¶
type ObjectIter struct {
// contains filtered or unexported fields
}
func (*ObjectIter) HasNext ¶
func (it *ObjectIter) HasNext() bool
func (*ObjectIter) Next ¶
func (it *ObjectIter) Next() (k, v *Value)
type StructField ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func ParseString ¶
func WrapString ¶
func WrapStringUnsafe ¶
func (*Value) CheckBytes ¶
func (*Value) CheckString ¶
func (*Value) MustCheckBytes ¶
func (*Value) MustCheckString ¶
func (*Value) MustFloat64 ¶
func (*Value) MustUint64 ¶
func (*Value) ObjectIter ¶
func (v *Value) ObjectIter() (*ObjectIter, error)
func (*Value) UnmarshalV0 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.