airports

package
v0.0.0-...-b2d281f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airport

type Airport openflights.Airport

func GetAll

func GetAll() []Airport

func GetFromIATA

func GetFromIATA(code string) (Airport, error)

func GetFromICAO

func GetFromICAO(code string) (Airport, error)
func Search(query string) []Airport

func (Airport) SearchableString

func (a Airport) SearchableString() string

func (Airport) ToModel

func (a Airport) ToModel() models.Airport

type Airports

type Airports []Airport

func (Airports) Len

func (a Airports) Len() int

func (Airports) String

func (a Airports) String(i int) string

Implement the searchable interface for the fuzzy-searcher

Jump to

Keyboard shortcuts

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