Documentation ¶
Overview ¶
Package igc implements an IGC parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder is an IGC encoder.
func NewEncoder ¶
func NewEncoder(w io.Writer, options ...EncoderOption) *Encoder
NewEncoder returns a new Encoder that writes to w.
type EncoderOption ¶
type EncoderOption func(*Encoder)
An EncoderOption sets an option on an Encoder.
type T ¶
type T struct { Headers []Header LineString *geom.LineString }
A T represents a parsed IGC file.
func Read ¶
Read reads a igc.T from r, which should contain IGC records.
IGC files in the wild are often corrupt, the IGC specification has been incomplete, and has evolved over time. The parser is consequently very tolerant of what it accepts and ignores several common errors. Consequently, the returned T might still contain headers and coordinates, even if the returned error is non-nil.
Click to show internal directories.
Click to hide internal directories.