mirror of
https://github.com/Sosokker/openweathermap-dashboard.git
synced 2025-12-18 21:54:05 +01:00
26 lines
402 B
Go
26 lines
402 B
Go
package main
|
|
|
|
type Coordinate struct {
|
|
Lon float32 `json:"lon"`
|
|
Lat float32 `json:"lat"`
|
|
}
|
|
|
|
type Weather struct {
|
|
Id int `json:"id"`
|
|
Main string `json:"main"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type DataEntry struct {
|
|
Name string `json:"name"`
|
|
Coord Coordinate
|
|
Weather Weather
|
|
Rain struct {
|
|
PerHour float64 `json:"1h"`
|
|
} `json:"rain"`
|
|
}
|
|
|
|
func main() {
|
|
|
|
}
|