Documentation
¶
Index ¶
- Constants
- Variables
- func NewADIFReader(r io.Reader) *baseADIFReader
- func NewADIFRecord() *baseADIFRecord
- func NewADIFWriter(w io.Writer) *baseADIFWriter
- func NewDedupeADIFReader(r io.Reader) *dedupeADIFReader
- func NewLOTWClient(username, password string) *lotwClientImpl
- type ADIFReader
- type ADIFRecord
- type ADIFWriter
- type LOTWClient
Constants ¶
View Source
const ( ADIFBoolean = iota ADIFNumber ADIFString ADIFDate ADIFTime ADIFLocation )
View Source
const LOTWAPI string = "https://lotw.arrl.org/lotwuser/lotwreport.adi"
Variables ¶
View Source
var ADIFfieldInfo map[string]fieldMetadata
View Source
var ADIFfieldOrder []string
View Source
var InvalidField = errors.New("Invalid field definition.")
View Source
var InvalidFieldLength = errors.New("Invalid field length.")
Errors
View Source
var NoData = errors.New("No data to parse.")
Errors
View Source
var NoSuchField = errors.New("No such field.")
View Source
var OutputStarted = errors.New("Output already started.")
View Source
var TypeCodeExceedOneByte = errors.New("Type Code exceeds one byte.")
View Source
var UnknownColons = errors.New("Unknown colons in the tag.")
Functions ¶
func NewADIFReader ¶
func NewDedupeADIFReader ¶
func NewLOTWClient ¶
func NewLOTWClient(username, password string) *lotwClientImpl
Create a new client
Types ¶
type ADIFReader ¶
type ADIFReader interface { ReadRecord() (ADIFRecord, error) RecordCount() int }
Interface for ADIFReader
type ADIFRecord ¶
type ADIFRecord interface { // Print as ADIF String ToString() string // Fingerprint for duplication detection Fingerprint() string // Setters and getters GetValue(string) (string, error) SetValue(string, string) // Get all of the present field names GetFields() []string }
Public interface for ADIFRecords
type ADIFWriter ¶
type ADIFWriter interface { WriteRecord(ADIFRecord) error Flush() error SetComment(string) error }
Basic writer type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.