Documentation ¶
Overview ¶
Package igc implements an IGC parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidCharacter is returned when an invalid character is encountered. ErrInvalidCharacter = errors.New("invalid character") // ErrInvalidCharactersBeforeARecord is returned when invalid characters are encountered before the A record. ErrInvalidCharactersBeforeARecord = errors.New("invalid characters before A record") // ErrInvalidBRecord is returned when an invalid B record is encountered. ErrInvalidBRecord = errors.New("invalid B record") // ErrInvalidHRecord is returned when an invalid H record is encountered. ErrInvalidHRecord = errors.New("invalid H record") // ErrInvalidIRecord is returned when an invalid I record is encountered. ErrInvalidIRecord = errors.New("invalid I record") // ErrEmptyLine is returned when an empty line is encountered. ErrEmptyLine = errors.New("empty line") // ErrMissingARecord is returned when no A record is found. ErrMissingARecord = errors.New("missing A record") // ErrOutOfRange is returned when a value is out of range. ErrOutOfRange = errors.New("out of range") )
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.
Click to show internal directories.
Click to hide internal directories.