There was an error while loading. Please reload this page.
1 parent 32888f9 commit 29582b3Copy full SHA for 29582b3
openweathermap.go
@@ -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
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