From 52fb856f9bab44f52962337bdade415f8e066b81 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Fri, 25 Aug 2023 22:20:39 -0700 Subject: [PATCH] Add Remark field --- taf.go | 3 ++- types.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/taf.go b/taf.go index 28bcbba..73098d0 100644 --- a/taf.go +++ b/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 } } diff --git a/types.go b/types.go index cbefc38..3df3acf 100644 --- a/types.go +++ b/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.