From 7b3368eea4b62a855bc9f263a76421975b77792c Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 13 Sep 2022 08:56:33 -0500 Subject: [PATCH] Unmarshal the weather summary --- lib/weather/structs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/weather/structs.go b/lib/weather/structs.go index 9ba8fbd..30d0831 100644 --- a/lib/weather/structs.go +++ b/lib/weather/structs.go @@ -22,6 +22,12 @@ type ( H1 float32 `json:"1h"` H3 float32 `json:"3h"` } `json:"rain"` + + Weather []struct { + Main string `json:"main"` + Description string `json:"description"` + Icon string `json:"icon"` + } `json:"weather"` } WeatherError struct {