Documentation ¶
Index ¶
- Variables
- type Airport
- type AirportCode
- func (r AirportCode) Airport() Airport
- func (r AirportCode) IsValid() bool
- func (r AirportCode) MarshalText() ([]byte, error)
- func (r *AirportCode) Scan(value interface{}) error
- func (c AirportCode) String() string
- func (r *AirportCode) UnmarshalText(data []byte) error
- func (r AirportCode) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IATA_LARGE_AIRPORT_CODES []AirportCode = []AirportCode{}/* 607 elements not displayed */ IATA_LARGE_AIRPORTS = map[AirportCode]Airport{}/* 607 elements not displayed */ )
IATA Airport codes (large airports only) https://ourairports.com/data/
Functions ¶
This section is empty.
Types ¶
type AirportCode ¶
type AirportCode string
const (
AirportCodeUndefined AirportCode = ""
)
func ParseAirportCode ¶
func ParseAirportCode(c string) AirportCode
func (AirportCode) Airport ¶
func (r AirportCode) Airport() Airport
func (AirportCode) IsValid ¶
func (r AirportCode) IsValid() bool
func (AirportCode) MarshalText ¶
func (r AirportCode) MarshalText() ([]byte, error)
Text/JSON conversion
func (AirportCode) String ¶
func (c AirportCode) String() string
func (*AirportCode) UnmarshalText ¶
func (r *AirportCode) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.