Versions in this module Expand all Collapse all v1 v1.0.0 Dec 25, 2023 Changes in this version + var ErrEmptyLine = errors.New("empty line") + var ErrInvalidBRecord = errors.New("invalid B record") + var ErrInvalidCharacter = errors.New("invalid character") + var ErrInvalidCharactersBeforeARecord = errors.New("invalid characters before A record") + var ErrInvalidHRecord = errors.New("invalid H record") + var ErrInvalidIRecord = errors.New("invalid I record") + var ErrMissingARecord = errors.New("missing A record") + var ErrOutOfRange = errors.New("out of range") + type Encoder struct + func NewEncoder(w io.Writer, options ...EncoderOption) *Encoder + func (enc *Encoder) Encode(ls *geom.LineString) error + type EncoderOption func(*Encoder) + func A(a string) EncoderOption + type Errors map[int]error + func (es Errors) Error() string + type Header struct + Key string + KeyExtra string + Source string + Value string + type T struct + Headers []Header + LineString *geom.LineString + func Read(r io.Reader) (*T, error)