clean up and tidy
This commit is contained in:
+7
-7
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user