Documentation ¶
Index ¶
- func Parse(b []byte, vs structform.Visitor) error
- func ParseReader(in io.Reader, vs structform.Visitor) (int64, error)
- func ParseString(str string, vs structform.Visitor) error
- type Decoder
- type Parser
- type Visitor
- func (vs *Visitor) OnArrayFinished() error
- func (vs *Visitor) OnArrayStart(len int, baseType structform.BaseType) error
- func (vs *Visitor) OnBool(b bool) error
- func (vs *Visitor) OnBoolArray(a []bool) error
- func (vs *Visitor) OnByte(b byte) error
- func (vs *Visitor) OnBytes(a []byte) error
- func (vs *Visitor) OnFloat32(f float32) error
- func (vs *Visitor) OnFloat32Array(a []float32) error
- func (vs *Visitor) OnFloat64(f float64) error
- func (vs *Visitor) OnFloat64Array(a []float64) error
- func (vs *Visitor) OnInt(i int) error
- func (vs *Visitor) OnInt16(i int16) error
- func (vs *Visitor) OnInt16Array(a []int16) error
- func (vs *Visitor) OnInt32(i int32) error
- func (vs *Visitor) OnInt32Array(a []int32) error
- func (vs *Visitor) OnInt64(i int64) error
- func (vs *Visitor) OnInt64Array(a []int64) error
- func (vs *Visitor) OnInt8(i int8) error
- func (vs *Visitor) OnInt8Array(a []int8) error
- func (vs *Visitor) OnIntArray(a []int) error
- func (vs *Visitor) OnKey(s string) error
- func (vs *Visitor) OnKeyRef(s []byte) error
- func (vs *Visitor) OnNil() error
- func (vs *Visitor) OnObjectFinished() error
- func (vs *Visitor) OnObjectStart(len int, baseType structform.BaseType) error
- func (vs *Visitor) OnString(s string) error
- func (vs *Visitor) OnStringArray(a []string) error
- func (vs *Visitor) OnStringRef(s []byte) error
- func (vs *Visitor) OnUint(u uint) error
- func (vs *Visitor) OnUint16(u uint16) error
- func (vs *Visitor) OnUint16Array(a []uint16) error
- func (vs *Visitor) OnUint32(u uint32) error
- func (vs *Visitor) OnUint32Array(a []uint32) error
- func (vs *Visitor) OnUint64(u uint64) error
- func (vs *Visitor) OnUint64Array(a []uint64) error
- func (vs *Visitor) OnUint8(u uint8) error
- func (vs *Visitor) OnUint8Array(a []uint8) error
- func (vs *Visitor) OnUintArray(a []uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseReader ¶
func ParseString ¶
func ParseString(str string, vs structform.Visitor) error
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewBytesDecoder ¶
func NewBytesDecoder(b []byte, vs structform.Visitor) *Decoder
func NewDecoder ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser(vs structform.Visitor) *Parser
func (*Parser) ParseString ¶
type Visitor ¶
type Visitor struct {
// contains filtered or unexported fields
}
func NewVisitor ¶
func (*Visitor) OnArrayFinished ¶
func (*Visitor) OnArrayStart ¶
func (vs *Visitor) OnArrayStart(len int, baseType structform.BaseType) error
func (*Visitor) OnBoolArray ¶
func (*Visitor) OnFloat32Array ¶
func (*Visitor) OnFloat64Array ¶
func (*Visitor) OnInt16Array ¶
func (*Visitor) OnInt32Array ¶
func (*Visitor) OnInt64Array ¶
func (*Visitor) OnInt8Array ¶
func (*Visitor) OnIntArray ¶
func (*Visitor) OnObjectFinished ¶
func (*Visitor) OnObjectStart ¶
func (vs *Visitor) OnObjectStart(len int, baseType structform.BaseType) error
func (*Visitor) OnStringArray ¶
func (*Visitor) OnStringRef ¶
func (*Visitor) OnUint16Array ¶
func (*Visitor) OnUint32Array ¶
func (*Visitor) OnUint64Array ¶
func (*Visitor) OnUint8Array ¶
func (*Visitor) OnUintArray ¶
Click to show internal directories.
Click to hide internal directories.