Versions in this module Expand all Collapse all v0 v0.6.0 Feb 20, 2024 v0.5.0 Nov 28, 2023 Changes in this version + const ContinentAfrica + const ContinentAntarctica + const ContinentAsia + const ContinentEurope + const ContinentNorthAmerica + const ContinentOceania + const ContinentSouthAmerica + const ContinentUnknown + const CountryCodeLen + const LocationCodeLen + var ErrInvalidString = errors.New("invalid string format in UN/Locode") + var ErrNotFound = errors.New("record not found") + type Continent uint8 + func ContinentFromString(str string) Continent + func (c Continent) String() string + type CountryCode [CountryCodeLen]uint8 + func CountryCodeFromString(s string) (*CountryCode, error) + func (c *CountryCode) String() string + func (c *CountryCode) Symbols() [CountryCodeLen]uint8 + type Key struct + func NewKey(country, location string) (*Key, error) + func (k *Key) CountryCode() *CountryCode + func (k *Key) LocationCode() *LocationCode + type LocationCode [LocationCodeLen]uint8 + func LocationCodeFromString(s string) (*LocationCode, error) + func (l *LocationCode) String() string + func (l *LocationCode) Symbols() [LocationCodeLen]uint8 + type Point struct + Latitude float32 + Longitude float32 + type Record struct + Cont Continent + Country string + Location string + Point Point + SubDivCode string + SubDivName string + func Get(locodeStr string) (Record, error)