Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnglishName ¶
EnglishName returns the English country name for a code, if available.
func LoadCSV ¶
LoadCSV populates the country code map from a CSV reader with ISO 3166 data. The CSV must have headers and at least columns "name" and "alpha-2".
func LocalizedName ¶
LocalizedName returns a localized name using CLDR via golang.org/x/text. Falls back to the English name or code if localization is unavailable.
func MustLoadCSV ¶
MustLoadCSV loads CSV data or panics. Intended for wiring during startup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.