Documentation
¶
Index ¶
Constants ¶
const (
NotamDateLayout string = "0601021504"
)
Refer to ICAO Annex 15 Appendix 6 A NOTAM date-time group use a ten-figure group, giving year, month, day, hours and minutes in UTC. This entry is the date-time at which the NOTAMN comes into force. In the cases of NOTAMR and NOTAMC, the date-time group is the actual date and time of the NOTAM origination. The start of a day shall be indicated by “0000”. The end of a day shall be indicated by “2359”. With the exception of NOTAMC, a date-time group indicating duration of information shall be used unless the information is of a permanent nature in which case the abbreviation “PERM” is inserted instead. If information on timing is uncertain, the approximate duration -Item C) - shall be indicated using a date-time group followed by the abbreviation “EST”. Any NOTAM which includes an “EST” shall be cancelled or replaced before the date-time specified in Item C).
Variables ¶
This section is empty.
Functions ¶
func NotamDateToTime ¶
Converts the NOTAM date (yymmddhhmm) to date The Golang date parse is limited by the use of two-digit year. The function overcomes the limitation thanks the recognition of the current year.
Types ¶
type Notam ¶
type NotamList ¶
type NotamList struct { sync.RWMutex Data map[string]NotamReference }
func NewNotamList ¶
func NewNotamList() *NotamList
type NotamReference ¶
type NotamReference struct { Number string `json:"number"` Icaolocation string `json:"icaolocation"` CountryCode string `json:"countrycode"` }
func (*NotamReference) GetKey ¶
func (nr *NotamReference) GetKey() string
type NotamStatus ¶
type NotamStatus struct { NotamReference Status string `json:"status"` }