Documentation ¶
Index ¶
- type ArrayParser
- type CompositeParser
- type HstoreParser
- type Parser
- func (p *Parser) Advance()
- func (p *Parser) Bytes() []byte
- func (p *Parser) MustSkip(c byte) error
- func (p *Parser) Peek() byte
- func (p *Parser) Read() byte
- func (p *Parser) ReadIdentifier() (s string, numeric bool)
- func (p *Parser) ReadNumber() int
- func (p *Parser) ReadSep(c byte) ([]byte, bool)
- func (p *Parser) ReadString() ([]byte, error)
- func (p *Parser) Skip(c byte) bool
- func (p *Parser) SkipBytes(b []byte) bool
- func (p *Parser) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayParser ¶
type ArrayParser struct { *Parser // contains filtered or unexported fields }
func NewArrayParser ¶
func NewArrayParser(b []byte) *ArrayParser
func (*ArrayParser) NextElem ¶
func (p *ArrayParser) NextElem() ([]byte, error)
type CompositeParser ¶
type CompositeParser struct { *Parser // contains filtered or unexported fields }
func NewCompositeParser ¶
func NewCompositeParser(b []byte) *CompositeParser
func (*CompositeParser) NextElem ¶
func (p *CompositeParser) NextElem() ([]byte, error)
type HstoreParser ¶
type HstoreParser struct {
*Parser
}
func NewHstoreParser ¶
func NewHstoreParser(b []byte) *HstoreParser
func (*HstoreParser) NextKey ¶
func (p *HstoreParser) NextKey() ([]byte, error)
func (*HstoreParser) NextValue ¶
func (p *HstoreParser) NextValue() ([]byte, error)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ReadIdentifier ¶
func (*Parser) ReadNumber ¶
func (*Parser) ReadString ¶
Click to show internal directories.
Click to hide internal directories.