Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Directory string `yaml:"directory"` BoltDbFile string `yaml:"db_file"` URL string `yaml:"url"` }
func (*Config) RegisterFlags ¶
type CsvParser ¶
type CsvParser struct {
// contains filtered or unexported fields
}
CsvParser is built to parse the CSV file at github.com/wiedehopf/tar1090-db/raw/csv/aircraft.csv.gz It's also built to do this while minimizing allocations and as such does some risky slice->string conversions The custome CsvParser was built to work around the non-standard CSV format created by this python spamwriter = csv.writer(csvfile,
delimiter=';', escapechar='\\', quoting=csv.QUOTE_NONE, quotechar=None, lineterminator='\n')
Which is semicolon delimited, no header, non quoted and uses backslashes to escape There currently aren't any lines in the file that use the escape char so I'm not 100% sure the code here handles that correctly.
func NewCsvParser ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewAircraftManager ¶
Click to show internal directories.
Click to hide internal directories.