adif-checker is a small Go command-line tool that validates whether an ADIF file is well-formed.
- ADIF tags are terminated correctly
- Tag names and lengths are valid
- Tag data does not run past the end of the file
- Header content is accepted until
<EOH> - Unexpected bytes outside valid ADIF content are rejected
- Multiline (
:M) fields with non-CRLF line endings are warned
Run the checker against an ADIF file:
go run . /path/to/log.adiIf the file is valid, the program prints:
ADIF is well-formed
If the file is invalid, the program prints an error to stderr and exits with a non-zero status.
Run the test suite from the repository root:
go test ./...