Added weather route and embedded cache system

This commit is contained in:
2025-06-16 16:19:18 +02:00
commit dffec37d90
9 changed files with 385 additions and 0 deletions

9
types/city.go Normal file
View File

@@ -0,0 +1,9 @@
package types
// The City data type, representing the name, the latitude and the longitude
// of a location
type City struct {
Name string `json:"name"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
}