From 3ee3715ae7777dd6c1804974e2e293406fd1fe54 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 25 Mar 2020 00:13:51 +0530 Subject: Add apod support & fix errors --- apod/json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apod') diff --git a/apod/json.go b/apod/json.go index c6da815..eae5fb2 100644 --- a/apod/json.go +++ b/apod/json.go @@ -5,7 +5,7 @@ import ( "fmt" "regexp" - "framagit.org/andinus/cetus/pkg/request" + "tildegit.org/andinus/cetus/request" ) // APOD holds the response from the api. Not every field is returned @@ -27,7 +27,7 @@ type APOD struct { } // UnmarshalJson will take body as input & unmarshal it to res. -func UnmarshalJson(res *Res, body string) error { +func UnmarshalJson(res *APOD, body string) error { err := json.Unmarshal([]byte(body), res) if err != nil { err = fmt.Errorf("json.go: unmarshalling json failed\n%s", -- cgit 1.4.1-2-gfad0