https://github.com/twpayne/go-igc
Package igc handles IGC files.
https://github.com/twpayne/go-igc
go golang igc igc-parser
Last synced: 11 months ago
JSON representation
Package igc handles IGC files.
- Host: GitHub
- URL: https://github.com/twpayne/go-igc
- Owner: twpayne
- License: mit
- Created: 2024-06-06T21:27:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-08-22T21:28:16.000Z (11 months ago)
- Last Synced: 2025-08-24T00:37:47.873Z (11 months ago)
- Topics: go, golang, igc, igc-parser
- Language: Go
- Homepage:
- Size: 16 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-igc
[](https://pkg.go.dev/github.com/twpayne/go-igc)
Package `igc` handles [IGC
files](https://www.fai.org/page/igc-approved-flight-recorders).
## Features
* Robust, flexible parser for real IGC files, including common deviations from the IGC
specification.
* Support for all IGC record types.
* Support for B record additions.
* Support for K record additions.
* Support for N record additions.
* Support for sub-second resolution timestamps with the `TDS` B record addition.
* Support for high-resolution coordinates with the `LAD` and `LOD` B record
additions.
* Support for UTC midnight rollover.
* Support for [CIVL's Open Validation
Server](http://vali.fai-civl.org/webservice.html).
## Validation
A simple command line client for CIVL's Open Validation server is included.
Install and run it with:
```bash
$ go install github.com/twpayne/go-igc/cmd/validate-igc@latest
$ validate-igc filename.igc
filename.igc: Valid
$ echo $?
0
```
The exit code is `0` if the IGC file is valid, `1` if it is invalid, or `2` if
it could not be validated.
## License
MIT