Add News widget and integrate NewsAPI for live updates
This commit is contained in:
@@ -3,21 +3,22 @@ package openWeatherMap
|
||||
import "time"
|
||||
|
||||
type CurrentWeather struct {
|
||||
Base string `json:"base"`
|
||||
Visibility int `json:"visibility"`
|
||||
Dt int `json:"dt"`
|
||||
Timezone int `json:"timezone"`
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Cod int `json:"cod"`
|
||||
Coordinates Coordinates `json:"coord"`
|
||||
Weather []Weather `json:"weather"`
|
||||
Wind Wind `json:"wind"`
|
||||
Clouds Clouds `json:"clouds"`
|
||||
Rain Rain `json:"rain"`
|
||||
Snow Snow `json:"snow"`
|
||||
Sys Sys `json:"sys"`
|
||||
Main Main `json:"main"`
|
||||
Base string `json:"base"`
|
||||
Visibility int `json:"visibility"`
|
||||
Dt int `json:"dt"`
|
||||
Timezone int `json:"timezone"`
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Cod int `json:"cod"`
|
||||
Coordinates Coordinates `json:"coord"`
|
||||
Weather []Weather `json:"weather"`
|
||||
Wind Wind `json:"wind"`
|
||||
Clouds Clouds `json:"clouds"`
|
||||
Rain Rain `json:"rain"`
|
||||
Snow Snow `json:"snow"`
|
||||
Sys Sys `json:"sys"`
|
||||
Main Main `json:"main"`
|
||||
ErrorMessage string
|
||||
}
|
||||
|
||||
type Coordinates struct {
|
||||
|
||||
Reference in New Issue
Block a user