2026-06-14 23:25:55 +00:00
|
|
|
package generatedtext
|
|
|
|
|
|
|
|
|
|
type Tomorrow struct {
|
|
|
|
|
Summary string `json:"summary"`
|
|
|
|
|
ForecastDiscussion []string `json:"forecast_discussion"`
|
|
|
|
|
PrecipitationTiming string `json:"precipitation_timing,omitempty"`
|
|
|
|
|
Confidence string `json:"confidence,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func ValidateTomorrow(data []byte) (Tomorrow, []byte, error) {
|
2026-06-16 14:55:22 +00:00
|
|
|
return validateDayStyleGeneratedText[Tomorrow, *Tomorrow](data, "tomorrow")
|
|
|
|
|
}
|
2026-06-14 23:25:55 +00:00
|
|
|
|
2026-06-16 14:55:22 +00:00
|
|
|
func (t *Tomorrow) dayStyleFields() dayStyleFields {
|
|
|
|
|
return dayStyleFields{
|
|
|
|
|
Summary: t.Summary,
|
|
|
|
|
ForecastDiscussion: t.ForecastDiscussion,
|
|
|
|
|
PrecipitationTiming: t.PrecipitationTiming,
|
|
|
|
|
Confidence: t.Confidence,
|
2026-06-14 23:25:55 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-16 14:55:22 +00:00
|
|
|
func (t *Tomorrow) setDayStyleFields(fields dayStyleFields) {
|
|
|
|
|
t.Summary = fields.Summary
|
|
|
|
|
t.ForecastDiscussion = fields.ForecastDiscussion
|
|
|
|
|
t.PrecipitationTiming = fields.PrecipitationTiming
|
|
|
|
|
t.Confidence = fields.Confidence
|
2026-06-14 23:25:55 +00:00
|
|
|
}
|