Add Remark field

This commit is contained in:
Elara 2023-08-25 22:20:39 -07:00
parent e0424c3b64
commit 52fb856f9b
2 changed files with 5 additions and 1 deletions

3
taf.go
View File

@ -366,7 +366,8 @@ func DecodeWithOptions(r io.Reader, opts Options) (*Forecast, error) {
// happen to the probability rather than the root forecast. // happen to the probability rather than the root forecast.
out = reflect.ValueOf(pr).Elem() out = reflect.ValueOf(pr).Elem()
} }
case item.Remark != nil:
fc.Remark = *item.Remark
} }
} }

View File

@ -44,6 +44,9 @@ type Forecast struct {
// Flags contains special flags associated with the forecast. // Flags contains special flags associated with the forecast.
Flags []Flag `json:"flags,omitempty"` Flags []Flag `json:"flags,omitempty"`
// Remark contains remarks from the forecast.
Remark string `json:"remark,omitempty"`
} }
// Change represents a change in weather conditions within a forecast. // Change represents a change in weather conditions within a forecast.