parser

package
v6.6.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2017 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

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 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 New

func New(b []byte) *Parser

func NewString

func NewString(s string) *Parser

func (*Parser) Advance

func (p *Parser) Advance()

func (*Parser) Bytes

func (p *Parser) Bytes() []byte

func (*Parser) Peek

func (p *Parser) Peek() byte

func (*Parser) Read

func (p *Parser) Read() byte

func (*Parser) ReadIdentifier

func (p *Parser) ReadIdentifier() (s string, numeric bool)

func (*Parser) ReadNumber

func (p *Parser) ReadNumber() int

func (*Parser) ReadSep

func (p *Parser) ReadSep(c byte) ([]byte, bool)

func (*Parser) Skip

func (p *Parser) Skip(c byte) bool

func (*Parser) SkipBytes

func (p *Parser) SkipBytes(b []byte) bool

func (*Parser) Valid

func (p *Parser) Valid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL