parser

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) CutPrefix added in v1.2.2

func (p *Parser) CutPrefix(skip []byte) bool

func (*Parser) Peek

func (p *Parser) Peek() byte

func (*Parser) Read

func (p *Parser) Read() byte

func (*Parser) ReadByte added in v1.2.2

func (p *Parser) ReadByte() (byte, error)

func (*Parser) ReadIdentifier

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

func (*Parser) ReadNumber

func (p *Parser) ReadNumber() int

func (*Parser) ReadSep

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

func (*Parser) Remaining added in v1.2.2

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

func (*Parser) Reset added in v1.2.2

func (p *Parser) Reset(b []byte)

func (*Parser) Skip

func (p *Parser) Skip(skip byte) error

func (*Parser) SkipPrefix added in v1.2.2

func (p *Parser) SkipPrefix(skip []byte) error

func (*Parser) Unread added in v1.2.2

func (p *Parser) Unread()

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