Skip to content

Commit 29582b3

Browse files
committed
add forecast response struct
1 parent 32888f9 commit 29582b3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

‎openweathermap.go‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package openweathermap
2+
3+
type OpenWeatherMap struct {
4+
API_KEY string
5+
}
6+
7+
type forecastResponse struct {
8+
city struct {
9+
id int
10+
name string
11+
}
12+
coord struct {
13+
long float64
14+
lat float64
15+
}
16+
country string
17+
cnt int
18+
list [] struct {
19+
dt string
20+
main struct {
21+
temp float64
22+
temp_min float64
23+
temp_max float64
24+
humidity float64
25+
}
26+
weather [] struct {
27+
id int
28+
main string
29+
description string
30+
}
31+
clouds struct {
32+
all int
33+
}
34+
wind struct {
35+
speed float64
36+
deg float64
37+
}
38+
}
39+
}
40+
41+
func (owm *OpenWeatherMap) currentWeather() {
42+
43+
}

0 commit comments

Comments
 (0)