parser

package
v0.0.0-...-6866aad Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadUntil

func ReadUntil(in string, offset int, c rune) string

Types

type Parser

type Parser struct {
	Line  string
	Depth int
	IsNew bool
	// contains filtered or unexported fields
}

func New

func New(in string) *Parser

func (*Parser) AdvanceLine

func (p *Parser) AdvanceLine()

func (*Parser) ReadFloat32

func (p *Parser) ReadFloat32() (float32, error)

func (*Parser) ReadFloat64

func (p *Parser) ReadFloat64() (float64, error)

func (*Parser) ReadInt

func (p *Parser) ReadInt() (int, error)

func (*Parser) ReadInt64

func (p *Parser) ReadInt64() (int64, error)

func (*Parser) ReadKey

func (p *Parser) ReadKey() string

func (*Parser) ReadString

func (p *Parser) ReadString() (string, error)

func (*Parser) SkipValue

func (p *Parser) SkipValue()

Advances a line and skips any deeper children

Jump to

Keyboard shortcuts

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