diff --git a/internal/pkg/domain/weather_event.go b/internal/pkg/domain/weather_event.go new file mode 100644 index 0000000..d1c2efe --- /dev/null +++ b/internal/pkg/domain/weather_event.go @@ -0,0 +1,17 @@ +package domain + +import "time" + +type Celsius float64 + +type Temperature struct { + Value Celsius +} + +type WeatherEvent struct { + Date time.Time + Condition WeatherCondition `json:"condition"` + Temperature *Temperature `json:"temperature"` + High *Temperature `json:"high,omitempty"` + Low *Temperature `json:"low,omitempty"` +}