package
module
Version:
v1.0.1-0...-0efffb5
Opens a new window with list of versions in this module.
Published: Jun 20, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GoTimeZoneMapper
A library to lookup Country-Code (ISO 3166-1 alpha-2) from Timezone (tz database)
Example Lookup
America/New_York => US
How to use
code, err := mapper.FindCountryCodeForTimezone("America/New_York")
if err != nil {
fmt.Println(err)
}
fmt.Println(code)
Documentation
¶
FindCountryCodeForTimezone : Returns country-code in ISO 3166-1 alpha-2 format (Ex India - IN)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.