Documentation ¶
Index ¶
- Constants
- Variables
- func ClearDecoders()
- func RegisterFieldDecoder(type_ string, field string, func_ DecoderFunc)
- func RegisterTypeDecoder(type_ string, func_ DecoderFunc)
- func Unmarshal(data []byte, v interface{}) error
- type Decoder
- type DecoderFunc
- type Iterator
- func (iter *Iterator) CurrentBuffer() string
- func (iter *Iterator) Read(obj interface{})
- func (iter *Iterator) ReadArray() (ret bool)
- func (iter *Iterator) ReadArrayCB(cb func())
- func (iter *Iterator) ReadBool() (ret bool)
- func (iter *Iterator) ReadFloat32() (ret float32)
- func (iter *Iterator) ReadFloat64() (ret float64)
- func (iter *Iterator) ReadInt() (ret int)
- func (iter *Iterator) ReadInt16() (ret int16)
- func (iter *Iterator) ReadInt32() (ret int32)
- func (iter *Iterator) ReadInt64() (ret int64)
- func (iter *Iterator) ReadInt8() (ret int8)
- func (iter *Iterator) ReadNull() (ret bool)
- func (iter *Iterator) ReadObject() (ret string)
- func (iter *Iterator) ReadObjectCB(cb func(string))
- func (iter *Iterator) ReadString() (ret string)
- func (iter *Iterator) ReadStringAsBytes() (ret []byte)
- func (iter *Iterator) ReadUint() (ret uint)
- func (iter *Iterator) ReadUint16() (ret uint16)
- func (iter *Iterator) ReadUint32() (ret uint32)
- func (iter *Iterator) ReadUint64() (ret uint64)
- func (iter *Iterator) ReadUint8() (ret uint8)
- func (iter *Iterator) ReportError(operation string, msg string)
- func (iter *Iterator) Reuse(input []byte) *Iterator
- func (iter *Iterator) Skip()
Constants ¶
View Source
const ( MaxRune = '\U0010FFFF' // Maximum valid Unicode code point. RuneError = '\uFFFD' // the "error" Rune or "Unicode replacement character" )
Variables ¶
View Source
var DECODERS unsafe.Pointer
Functions ¶
func ClearDecoders ¶
func ClearDecoders()
func RegisterFieldDecoder ¶
func RegisterFieldDecoder(type_ string, field string, func_ DecoderFunc)
func RegisterTypeDecoder ¶
func RegisterTypeDecoder(type_ string, func_ DecoderFunc)
Types ¶
type DecoderFunc ¶
type Iterator ¶
type Iterator struct { Error error // contains filtered or unexported fields }
func ParseBytes ¶
func ParseString ¶
func (*Iterator) CurrentBuffer ¶
func (*Iterator) ReadArrayCB ¶
func (iter *Iterator) ReadArrayCB(cb func())
func (*Iterator) ReadFloat32 ¶
func (*Iterator) ReadFloat64 ¶
func (*Iterator) ReadObject ¶
func (*Iterator) ReadObjectCB ¶
func (*Iterator) ReadString ¶
func (*Iterator) ReadStringAsBytes ¶
func (*Iterator) ReadUint16 ¶
func (*Iterator) ReadUint32 ¶
func (*Iterator) ReadUint64 ¶
func (*Iterator) ReportError ¶
Click to show internal directories.
Click to hide internal directories.