Skip to content
/ godxcc Public

DXCC CTY.DAT and callsign parsing library in Go

License

Notifications You must be signed in to change notification settings

jj1bdx/godxcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godxcc: DXCC CTY.DAT database for Go

NOTE WELL

  • Run godxcc.LoadCty() for initialization
  • godxcc.DXCCGetRecord() argument callsign must be fully capitalized and verified

cty.dat file

cty.dat file is no longer embedded in the Go code and must be externally provided. The filename must be all lowercased.

The file search path is as follows, respectively:

  • /usr/share/dxcc/cty.dat
  • /usr/local/share/dxcc/cty.dat
  • (directory where the executable file resides)/cty.dat

See the Big CTY page by Jim Reisert, AD1C for the cty.dat file.

usage

	// Run the loader before using API
	godxcc.LoadCty()

	// type godxcc.DXCCData
	var dxccdata godxcc.DXCCData
	// Caution: DXCCGetRecord argument callsign
	// must be fully capitalized and verified
	dxccdata := godxcc.DXCCGetRecord("JJ1BDX")

Demo code

  • dxcc: lookup command of the DXCCGetRecord
  • testparse: testing DXCCGetRecord output

LICENSE

MIT

About

DXCC CTY.DAT and callsign parsing library in Go

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages