token

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidStartMarkerErr = fmt.Errorf("invalid start marker.")

Functions

This section is empty.

Types

type T

type T struct {
	Sym *parsing.Scanner
}

func NewT

func NewT(r io.Reader) *T

func (*T) AtEnd

func (t *T) AtEnd() bool

func (*T) Bytes

func (t *T) Bytes() []byte

func (*T) EatComment

func (t *T) EatComment()

func (*T) EatCommentsAndSpaces

func (t *T) EatCommentsAndSpaces()

func (*T) EatSpace

func (t *T) EatSpace()

func (*T) NextRaw

func (t *T) NextRaw() ([]byte, bool)

func (*T) NextText

func (t *T) NextText() string

func (*T) ParseBinaryField

func (t *T) ParseBinaryField() (content []byte, err error)

func (*T) ParseCollection

func (t *T) ParseCollection() (geo geom.Collection, err error)

func (*T) ParseComment

func (t *T) ParseComment() (content []byte, err error)

func (*T) ParseExpectedField

func (t *T) ParseExpectedField() (geo interface{}, err error)

func (*T) ParseFloat64

func (t *T) ParseFloat64() (float64, error)

func (*T) ParseLabel

func (t *T) ParseLabel() (content []byte, err error)

We will ignore all starting spaces, and comments.

func (*T) ParseLineComment

func (t *T) ParseLineComment() (content []byte, err error)

Assumes that the first token is going to be the symbol for a line comment.

func (*T) ParseLineString

func (t *T) ParseLineString() (pts geom.LineString, err error)

func (*T) ParseMultiLineString

func (t *T) ParseMultiLineString() (lns geom.MultiLineString, err error)

func (*T) ParseMultiPoint

func (t *T) ParseMultiPoint() (pts geom.MultiPoint, err error)

func (*T) ParseMultiPolygon

func (t *T) ParseMultiPolygon() (pys geom.MultiPolygon, err error)

func (*T) ParsePoint

func (t *T) ParsePoint() (pt geom.Point, err error)

func (*T) ParsePolygon

func (t *T) ParsePolygon() (lns geom.Polygon, err error)

func (*T) ParseTillEndIgnoreComments

func (t *T) ParseTillEndIgnoreComments() (contents []byte)

func (*T) Peek

func (t *T) Peek() byte

func (*T) Scan

func (t *T) Scan() bool

func (*T) ScanTill

func (t *T) ScanTill(sym byte) (contents []byte)

func (*T) Symbol

func (t *T) Symbol() byte

Jump to

Keyboard shortcuts

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