From 45e0eb337df0735a97f1e4e5299b67a6465c7f40 Mon Sep 17 00:00:00 2001 From: Corentin Barreau Date: Wed, 6 Nov 2024 22:01:04 +0100 Subject: [PATCH] fix: pass pointer to Decode --- get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get.go b/get.go index 5f326e1..6d9f389 100644 --- a/get.go +++ b/get.go @@ -49,7 +49,7 @@ func (c *Client) Feed(size int, strategy string) (URLs []URL, err error) { } // decode response body - err = json.NewDecoder(resp.Body).Decode(URLs) + err = json.NewDecoder(resp.Body).Decode(&URLs) if err != nil { return URLs, err }