-
Notifications
You must be signed in to change notification settings - Fork 3
/
weather.go
21 lines (19 loc) · 864 Bytes
/
weather.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package model
import "time"
type Weather struct {
StartTime *time.Time `json:"start_time"`
EndTime *time.Time `json:"end_time"`
Country string `json:"country"`
City string `json:"city"`
Timezone string `json:"timezone"`
TimezoneOffsetSeconds int64 `json:"timezone_offset_seconds"`
Condition string `json:"condition"`
Icon string `json:"icon"`
AvgTempC float64 `json:"temp_c"`
MinTempC float64 `json:"min_temp_c"`
MaxTempC float64 `json:"max_temp_c"`
AvgWindKph float64 `json:"avg_wind_kph"`
MinWindKph float64 `json:"min_wind_kph"`
MaxWindKph float64 `json:"max_wind_kph"`
HourlyWeathers []Weather `json:"hourly_weathers"`
}