clean up and tidy

This commit is contained in:
simonkellet
2023-10-16 13:37:30 +01:00
parent f1fca715fb
commit 53ec5bbccf
3 changed files with 7 additions and 33 deletions
+7 -7
View File
@@ -9,19 +9,19 @@ import (
// WeatherAPI ...
type WeatherAPI struct {
Coord Coord `json:"coord"`
Weather []Weather `json:"weather"`
Base string `json:"base"`
Name string `json:"name"`
Weather []Weather `json:"weather"`
Sys Sys `json:"sys"`
Main Main `json:"main"`
Visability int64 `json:"visibility"`
Wind Wind `json:"wind"`
Coord Coord `json:"coord"`
Rain Rain `json:"rain"`
Clouds Cloud `json:"cloud"`
DT int64 `json:"dt"`
Sys Sys `json:"sys"`
Visability int64 `json:"visibility"`
TimeZone int `json:"timezone"`
ID int `json:"id"`
Name string `json:"name"`
COD int `json:"cod"`
}
@@ -33,10 +33,10 @@ type Coord struct {
// Weather ...
type Weather struct {
ID int `json:"id"`
Main string `json:"main"`
Description string `json:"description"`
Icon string `json:"icon"`
ID int `json:"id"`
}
// Main ...
@@ -68,9 +68,9 @@ type Cloud struct {
// Sys ...
type Sys struct {
Country string `json:"country"`
Types int `json:"type"`
ID int64 `json:"id"`
Country string `json:"country"`
Sunrise int64 `json:"sunrise"`
Sunset int64 `json:"sunset"`
}