Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCountryFromCode ¶
GetCountryFromCode useds an embedded list of country codes to find the corresponding country name
Types ¶
type CurrentWeatherReport ¶
type CurrentWeatherReport struct { ReportLocation Location StationName string DistFromStationKm float64 DistFromStationMiles float64 UpdatedAt time.Time TempC int TempF int WindSpeedKph int WindSpeedMph int WindCategory WindType }
func GetCurrentWeatherForLocation ¶
func GetCurrentWeatherForLocation(loc Location) (CurrentWeatherReport, error)
type DayForecast ¶
type ForecastReport ¶
type ForecastReport struct { ForecastLocation Location DayForecasts []DayForecast HourlyForecasts []HourlyForecast }
func GetWeatherForecast ¶
func GetWeatherForecast(loc Location) (ForecastReport, error)
type HourlyForecast ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.