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

12
types/Weather.go Normal file
View File

@@ -0,0 +1,12 @@
package types
import "time"
// The Weather data type, representing the weather of a certain city
type Weather struct {
Date time.Time `json:"date"`
Temperature string `json:"temperature"`
Condition string `json:"condition"`
FeelsLike string `json:"feelsLike"`
Emoji string `json:"emoji"`
}