From bfd281e5594886a5da483dd9ff12a441697326d4 Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 17:15:51 +0000 Subject: [PATCH] [Sync Iteration] go/weather-forecast/1 --- .../go/weather-forecast/1/weather_forecast.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 solutions/go/weather-forecast/1/weather_forecast.go diff --git a/solutions/go/weather-forecast/1/weather_forecast.go b/solutions/go/weather-forecast/1/weather_forecast.go new file mode 100644 index 0000000..4f8e7d4 --- /dev/null +++ b/solutions/go/weather-forecast/1/weather_forecast.go @@ -0,0 +1,14 @@ +//Package weather provides function for solving weather forcast problems. +package weather +var ( +// CurrentCondition stores the weather conditon. + CurrentCondition string +// CurrentLocation stores the location where the weather experienced. + CurrentLocation string +) + +// Forecast returns the location and weather of the location in string format. +func Forecast(city, condition string) string { + CurrentLocation, CurrentCondition = city, condition + return CurrentLocation + " - current weather condition: " + CurrentCondition +}