-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathowmstruct.go
57 lines (50 loc) · 947 Bytes
/
owmstruct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package weathermodule_v2
type Sys struct {
Type int64
Id int64
Country string
Sunrise int64
Sunset int64
}
type Main struct {
Temp float64
Feels_like float64
Temp_min float64
Temp_max float64
Pressure float64
Humidity int64
}
type WindStruct struct {
Speed float64
Deg int64
Gust float64
}
type CloudsStruct struct {
All int64
}
type CoordinatesStruct struct {
Lon float64
Lat float64
}
type WeatherStruct struct {
Id int64
Main string
Description string
Icon string
}
type OWMStruct struct {
Coord CoordinatesStruct `json:"coord"`
Weather [1]WeatherStruct `json:"weather"`
Base string `json:"base"`
Main Main `json:"main"`
Visibility int64 `json:"visibility"`
Wind WindStruct `json:"wind"`
Clouds CloudsStruct `json:"clouds"`
Dt int64 `json:"dt"`
Sys Sys `json:"sys"`
Timezone int64 `json:"timezone"`
Id int64 `json:"id"`
Name string `json:"name"`
Cod int64 `json:"cod"`
Message string `json:"message"`
}