Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimezoneToCountry string
Functions ¶
This section is empty.
Types ¶
type TimezoneCountryMap ¶
TimezoneCountryMap is a map of all timezones to a country.
func NewTimezoneCountryMap ¶
func NewTimezoneCountryMap() (TimezoneCountryMap, error)
NewTimezoneCountryMap creates a new TimezoneCountryMap using the embedded JSON.
func (TimezoneCountryMap) GetCountry ¶
func (m TimezoneCountryMap) GetCountry(tz string) (string, error)
GetCountry returns the country name for a given timezone.
Click to show internal directories.
Click to hide internal directories.