cup

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCupRecords

func ExtractCupRecords(records [][]string) ([]geo.AirportRecord, error)

ExtractCupRecords converts the list of CSV rows into a list of geo.AirportRecords, and returns the list, or an error if unsuccessful.

func FromCupCsvRecord

func FromCupCsvRecord(c []string) (*geo.AirportRecord, error)

FromCupCsvRecord converts a CUP file CSV row into a geo.AirportRecord. If successful, the record is returned. Otherwise an error is returned.

func Parse

func Parse(contents io.Reader) ([][]string, error)

Parse decodes contents into a list of CSV rows.

func ParseFile

func ParseFile(file string) ([][]string, error)

ParseFile reads file from disk and parses it. It returns the CSV rows if successful, and otherwise returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL