Add Remark field
This commit is contained in:
parent
e0424c3b64
commit
52fb856f9b
3
taf.go
3
taf.go
@ -366,7 +366,8 @@ func DecodeWithOptions(r io.Reader, opts Options) (*Forecast, error) {
|
||||
// happen to the probability rather than the root forecast.
|
||||
out = reflect.ValueOf(pr).Elem()
|
||||
}
|
||||
|
||||
case item.Remark != nil:
|
||||
fc.Remark = *item.Remark
|
||||
}
|
||||
}
|
||||
|
||||
|
3
types.go
3
types.go
@ -44,6 +44,9 @@ type Forecast struct {
|
||||
|
||||
// Flags contains special flags associated with the forecast.
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user