Added custom date type

This commit is contained in:
2025-06-17 10:11:10 +02:00
parent bac8c69382
commit 4844e946d3
3 changed files with 41 additions and 9 deletions

View File

@@ -1,12 +1,10 @@
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"`
Date *ZephyrDate `json:"date"`
Temperature string `json:"temperature"`
Condition string `json:"condition"`
FeelsLike string `json:"feelsLike"`
Emoji string `json:"emoji"`
}